$allPlugins
$allPlugins : array
All loaded plugins
Timestampable Плагін, який автоматично заповнить поля created та updated в моделі
init(\Bazalt\ORM\Record $model, array $options) : void
Ініціалізує плагін
| \Bazalt\ORM\Record | $model | Модель, для якої викликано initFields |
| array | $options | Масив опцій, передається з базової моделі при ініціалізації плагіна |
getPlugin(string $name) : \Bazalt\ORM\Plugin\AbstractPlugin
Return plugin by name
| string | $name | Name of plugin |
Plugin
initForModel(\Bazalt\ORM\Record $model, array $options) : void
Init plugin for model
| \Bazalt\ORM\Record | $model | Record |
| array | $options | Options for plugin |
toArray(\Bazalt\ORM\Record $record, $itemArray, $options)
| \Bazalt\ORM\Record | $record | |
| $itemArray | ||
| $options |
onSave(\Bazalt\ORM\Record $record, $return) : void
| \Bazalt\ORM\Record | $record | Поточний запис |
| $return |
initFields(\Bazalt\ORM\Record $model, array $options) : void
Додає додаткові службові поля до моделі.
Викликається в момент ініціалізації моделі
| \Bazalt\ORM\Record | $model | Модель, для якої викликано initFields |
| array | $options | Масив опцій, передається з базової моделі при ініціалізації плагіна |
initRelations(\Bazalt\ORM\Record $model, array $options) : void
Init model relations
| \Bazalt\ORM\Record | $model | Record |
| array | $options | Options for plugin |
initPlugins(\Bazalt\ORM\Record $model, array $options) : void
Init model plugins
| \Bazalt\ORM\Record | $model | Record |
| array | $options | Options for plugin |