Свойство | Тип | Описание | |
---|---|---|---|
$_table | Table instance | ||
$_typeMaps | array | Maps ACL type options to ACL models |
Метод | Описание | |
---|---|---|
__construct ( |
Sets up the configuration for the model, and loads ACL models if they haven't been already | |
afterDelete ( Cake\Event\Event $event, Cake\ORM\Entity $entity ) : void | Destroys the ARO/ACO node bound to the deleted record | |
afterSave ( Cake\Event\Event $event, Cake\ORM\Entity $entity ) : void | Creates a new ARO/ACO node bound to this record | |
node ( string | array | Model $ref = null, string $type = null ) : Cake\ORM\Query | Retrieves the Aro/Aco node for this model |
public __construct ( |
||
$model | Table instance being attached | |
$config | array | Configuration |
Результат | void |
public afterDelete ( Cake\Event\Event $event, Cake\ORM\Entity $entity ) : void | ||
$event | Cake\Event\Event | The afterDelete event that was fired |
$entity | Cake\ORM\Entity | The entity being deleted |
Результат | void |
public node ( string | array | Model $ref = null, string $type = null ) : Cake\ORM\Query | ||
$ref | string | array | Model | Array with 'model' and 'foreign_key', model object, or string value |
$type | string | Only needed when Acl is set up as 'both', specify 'Aro' or 'Aco' to get the correct node |
Результат | Cake\ORM\Query |
protected array $_typeMaps | ||
Результат | array |