Index

iGuarded

MMO\oauth\interfaces · 1 symbol · generated 5 Oct 2026

interface

iGuarded

iGuarded.php:18

An entity whose module guards it: the module decides who can see and change it (mmo.edms' File and Label, through its helpers\Access), so AccessController does not ask its client for the data.{repository}.{collection} scopes of its collections -- but in the generic data api (AccessController::$dataControllers), which serves any collection to whoever holds those scopes, and still refuses it to anyone else.

interface MMO\oauth\interfaces\iGuarded extends MMO\core\interfaces\iEntity
Namespace
MMO\oauth\interfaces
Implements
iEntity
class File extends Entity implements iGuarded {} $user->isAllowed('data.main.files#create'); // false: edms saves $user's upload all the same // GET data/main/files.json or POST data/main/files.json, as $user: refused
Inherited members (49)
ConstantsDeclared byDescription
FLAG_CHANGEDiEntity
FLAG_CREATEDiEntity
FLAG_IGNORE_CHANGEiEntity
FLAG_IGNORE_ENTITYiEntity
FLAG_OPACIFYiEntity
FLAG_REMOVEDiEntity
MethodsDeclared byDescription
addFlags($flags)iEntity
archive()iEntity
ArrayProperties()iArrayProperties
ArrayProperty($name)iArrayProperties
clearChanges()iEntity
compareTo($value)iComparable
debugName()iEntity
get($path, $default)iEntity
getChanges($asArray, $store)iEntity
getCollection()iEntity
getErrors()iEntity
getFlags()iEntity
getId()iEntity
getRepository()iEntity
getStatus()iEntity
getTitle()iEntity
hasStatusChanged()iEntity
HiddenPath($path)iArrayProperties
isArchive()iEntity
isChanged()iEntity
isCreated()iEntity
isFinal()iEntity
isRemoved()iEntity
isValid()iEntity
loadArray($data, $coerceOptions, $fromStore)iEntity
loadFromStore($data)iEntityLoad data as read from storage: not recorded as a change.
localName()iEntityGet the local name (collection name and this id) in the current repository
markChanged($keys)iEntity
mutate($type, $path, $value, $oldValue)iMutationObserver
offsetExists($offset)ArrayAccess
offsetGet($offset)ArrayAccess
offsetSet($offset, $value)ArrayAccess
offsetUnset($offset)ArrayAccess
removeFlags($flags)iEntity
removePermanently()iEntityRemove it for good: only an archived entity can be.
Schema()iSchemaProvider
setArrayPropertyOffset($key, $offset, $value, $coerceOptions)iEntity
setStatus($status)iEntity
store()iEntity
test($filter)iEntity
toArray($fields)iArrayProperties
toLink($attributes)iEntity
uid()iIdentifiableGet the unique identifier