NextDom\Model\Entity\Scenario
Scenario
ORM\Table(name="scenario", uniqueConstraints={@ORM\UniqueConstraint(name="name", columns={"group", "object_id", "name"})}, indexes={@ORM\Index(name="group", columns={"group"}), @ORM\Index(name="fk_scenario_object1_idx", columns={"object_id"}), @ORM\Index(name="trigger", columns={"trigger"}), @ORM\Index(name="mode", columns={"mode"}), @ORM\Index(name="modeTriger", columns={"mode", "trigger"})})
ORM\Entity
Synopsis
class Scenario
extends BaseEntity
{
- // constants
- const TABLE_NAME = NextDomObj::SCENARIO;
- // Inherited constants from BaseEntity
- const TABLE_NAME = '';
- // Inherited constants from BaseModel
- const TABLE_NAME = '';
- // members
- protected static $_templateArray;
- protected string $group = '';
- protected $mode;
- protected $schedule;
- protected $scenarioElement;
- protected $trigger;
- protected integer $timeout = 0;
- protected $description;
- protected $object_id;
- protected array $_elements = ;
- protected boolean $_changeState = false;
- protected string $_realTrigger = '';
- protected boolean $_return = true;
- protected array $_tags = ;
- protected boolean $_do = true;
- protected $_log;
- // Inherited members from BaseEntity
- protected $id;
- // Inherited members from BaseModel
- protected bool $_changed;
- // methods
- public void __construct()
- public bool testTrigger()
- public mixed getTrigger()
- public $this setTrigger()
- public boolean launch()
- public mixed getState()
- public mixed getCache()
- public $this setName()
- public bool|null persistLog()
- public mixed getLog()
- public void setLog()
- public void setCache()
- public mixed execute()
- public string getHumanName()
- public mixed getObject_id()
- public $this setObject_id()
- public JeeObject getObject()
- public string getGroup()
- public $this setGroup()
- public array getTags()
- public $this setTags()
- public void setLastLaunch()
- public void setState()
- public void emptyCacheWidget()
- public mixed getLastLaunch()
- public void setPID()
- public array getElement()
- public mixed getScenarioElement()
- public $this setScenarioElement()
- public bool getDo()
- public $this setDo()
- public string getReturn()
- public $this setReturn()
- public Scenario copy()
- public void save()
- public string getMode()
- public $this setMode()
- public array calculateScheduleDate()
- public bool|mixed|null getSchedule()
- public $this setSchedule()
- public string toHtml()
- public boolean hasRight()
- public string getIcon()
- public string getLinkToConfiguration()
- public void preSave()
- public mixed getTimeout()
- public $this setTimeout()
- public void postInsert()
- public mixed remove()
- public boolean removeData()
- public boolean setData()
- public string getData()
- public boolean isDue()
- public boolean stop()
- public boolean running()
- public string getPID()
- public mixed toArray()
- public string getLinkData()
- public mixed getUse()
- public mixed export()
- public string getDescription()
- public $this setDescription()
- public mixed getUsedBy()
- public void clearLog()
- public void resetRepeatIfStatus()
- public mixed getRealTrigger()
- public $this setRealTrigger()
- // 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 ConfigurationEntity
- public abstract void updateChangeState()
- public array|bool|mixed|null|string getConfiguration()
- public $this setConfiguration()
- // Inherited methods from DisplayEntity
- public abstract void updateChangeState()
- public mixed getDisplay()
- public $this setDisplay()
- // Inherited methods from IsVisibleEntity
- public abstract void updateChangeState()
- public mixed getIsVisible()
- public void isVisible()
- public $this setIsVisible()
- // Inherited methods from IsActiveEntity
- public abstract void updateChangeState()
- public bool getIsActive()
- public bool isActive()
- public $this setIsActive()
- // Inherited methods from NameEntity
- public abstract void updateChangeState()
- public string getName()
- public $this setName()
- // Inherited methods from OrderEntity
- public abstract void updateChangeState()
- public int getOrder()
- public $this setOrder()
- // Inherited methods from RefreshEntity
- public void refresh()
Hierarchy
Extends
Uses
- NextDom\Model\Entity\Parents\ConfigurationEntity
- NextDom\Model\Entity\Parents\DisplayEntity
- NextDom\Model\Entity\Parents\IsVisibleEntity
- NextDom\Model\Entity\Parents\IsActiveEntity
- NextDom\Model\Entity\Parents\NameEntity
- NextDom\Model\Entity\Parents\OrderEntity
- NextDom\Model\Entity\Parents\RefreshEntity
Tasks
Line | Task |
---|---|
1246 | Pourquoi ce test a-t-il dû être rajouté ? |
1442 | scenario_id, pas de guillemet ouvrant, à vérifier |
Constants
Name | Value |
---|---|
TABLE_NAME | NextDomObj::SCENARIO |
TABLE_NAME | '' |
TABLE_NAME | '' |
Members
protected
- $_changeState
- $_changed — NextDom\Model\Entity\Parents\bool
- $_do
- $_elements
- $_log
- $_realTrigger
- $_return
- $_templateArray — array
- $configuration — string
- $description — string
- $display — string
- $group — string
- $id — integer
- $isActive — boolean
- $isVisible — boolean
- $mode — string
- $name — string
- $object_id — int
- $order — integer
- $scenarioElement — string
- $schedule — string
- $timeout — integer
- $trigger — mixed
Methods
public
- __construct()
- calculateScheduleDate()
- clearLog()
- copy()
- emptyCacheWidget()
- execute() — Execute the scenario
- export()
- getCache() — Get data from cache
- getData()
- getDescription()
- getDo()
- getElement()
- getGroup()
- getHumanName()
- getIcon() — Get scenario icon
- getLastLaunch()
- getLinkData()
- getLinkToConfiguration()
- getLog()
- getMode()
- getObject()
- getObject_id()
- getPID()
- getRealTrigger()
- getReturn()
- getScenarioElement()
- getSchedule()
- getState()
- getTags()
- getTimeout()
- getTrigger()
- getUse()
- getUsedBy()
- hasRight()
- isDue()
- launch() — Lance un scénario
- persistLog()
- postInsert()
- preSave()
- remove()
- removeData()
- resetRepeatIfStatus()
- running()
- save()
- setCache() — Store data in cache
- setData()
- setDescription()
- setDo() — Set the state of the scenario.
- setGroup()
- setLastLaunch()
- setLog()
- setMode()
- setName()
- setObject_id()
- setPID()
- setRealTrigger()
- setReturn()
- setScenarioElement()
- setSchedule()
- setState()
- setTags()
- setTimeout()
- setTrigger()
- stop()
- testTrigger()
- toArray()
- toHtml()
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
Inherited from NextDom\Model\Entity\Parents\ConfigurationEntity
public
Inherited from NextDom\Model\Entity\Parents\DisplayEntity
public
- getDisplay() — Get display information by key
- setDisplay() — Set display information by key
- updateChangeState()
Inherited from NextDom\Model\Entity\Parents\IsVisibleEntity
public
Inherited from NextDom\Model\Entity\Parents\IsActiveEntity
public
- getIsActive()
- isActive() — Get active state of the scenario
- setIsActive()
- updateChangeState()
Inherited from NextDom\Model\Entity\Parents\NameEntity
public
Inherited from NextDom\Model\Entity\Parents\OrderEntity
public
Inherited from NextDom\Model\Entity\Parents\RefreshEntity
public
- refresh() — Rafraichit les informations à partir de la base de données