NextDom\Model\Entity\Note
Note
Synopsis
class Note
extends BaseEntity
{
- // constants
- const TABLE_NAME = NextDomObj::NOTE;
- // Inherited constants from BaseEntity
- const TABLE_NAME = '';
- // Inherited constants from BaseModel
- const TABLE_NAME = '';
- // members
- protected $text;
- // Inherited members from BaseEntity
- protected $id;
- // Inherited members from BaseModel
- protected bool $_changed;
- // Inherited methods from BaseModel
- public bool getChanged()
- public $this setChanged()
- public void updateChangeState()
- public string getTableName()
- public void save()
- public void remove()
- // Inherited methods from NameEntity
- public abstract void updateChangeState()
- public string getName()
- public $this setName()
Hierarchy
Constants
Name | Value |
---|---|
TABLE_NAME | NextDomObj::NOTE |
TABLE_NAME | '' |
TABLE_NAME | '' |
Members
protected
- $_changed — NextDom\Model\Entity\Parents\bool
- $id — integer
- $name — string
- $text
—
string
Text of the note
Methods
public
- getText() — Get the text of the note
- preSave() — Throw exception if note doesn't have name
- save() — Save note in database
- setText() — Set note text
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