ModelSynchronizer
FinalYes
Table of Contents
Methods
- className() : string
- Returns the fully qualified name of this class.
- getInstance() : static
- Returns singleton.
- subscribeOnRealObject() : bool
- Subscribes link on its real object to synchronize attributes.
- trigger() : void
- Triggers event to send data to subscribers.
- unsubscribe() : void
- Unsubscribes link.
Methods
className()
Returns the fully qualified name of this class.
public
static className() : string
Return values
stringgetInstance()
Returns singleton.
public
static getInstance() : static
Return values
staticsubscribeOnRealObject()
Subscribes link on its real object to synchronize attributes.
public
subscribeOnRealObject(BaseObject $link) : bool
Parameters
- $link : BaseObject
-
File or folder link.
Return values
booltrigger()
Triggers event to send data to subscribers.
public
trigger(BaseObject $baseObject, array<string|int, mixed> $attributes) : void
Parameters
- $baseObject : BaseObject
-
File or Folder.
- $attributes : array<string|int, mixed>
-
Attributes.
unsubscribe()
Unsubscribes link.
public
unsubscribe(BaseObject $link) : void
Parameters
- $link : BaseObject
-
File or folder link.