NextDom\Model\Entity\Listener
Listener
Synopsis
class Listener
extends BaseEntity
{
- // constants
- const TABLE_NAME = NextDomObj::LISTENER;
- // Inherited constants from BaseEntity
- const TABLE_NAME = '';
- // Inherited constants from BaseModel
- const TABLE_NAME = '';
- // Inherited members from BaseEntity
- protected $id;
- // Inherited members from BaseModel
- protected bool $_changed;
- // methods
- public void run()
- public array|bool|mixed|null|string getOption()
- public $this setOption()
- public void execute()
- public string getClass()
- public $this setClass()
- public string getFunction()
- public $this setFunction()
- public string getName()
- public void preSave()
- public bool save()
- public void emptyEvent()
- public void addEvent()
- public bool|mixed|null getEvent()
- public $this setEvent()
- // Inherited methods from BaseModel
- public bool getChanged()
- public $this setChanged()
- public void updateChangeState()
- public string getTableName()
- public void save()
- public void remove()
Hierarchy
Constants
Name | Value |
---|---|
TABLE_NAME | NextDomObj::LISTENER |
TABLE_NAME | '' |
TABLE_NAME | '' |
Members
protected
- $_changed — NextDom\Model\Entity\Parents\bool
- $class — string
- $event — string
- $function — string
- $id — integer
- $option — string
Methods
public
- addEvent()
- emptyEvent()
- execute()
- getClass()
- getEvent()
- getFunction()
- getName()
- getOption()
- preSave()
- run()
- save()
- setClass()
- setEvent()
- setFunction()
- setOption()
Inherited from NextDom\Model\Entity\Parents\BaseEntity
public
Inherited from NextDom\Model\Entity\Parents\BaseModel
public
- getChanged() — Get changed state
- getTableName()
- remove() — Remove the entity from the database
- save() — Save the entity in the database
- setChanged() — Set changed state
- updateChangeState() — Update change state if values are different