PHP Класс CrudSubject, Platform-Crud-Plugin

All Crud.* events passes this object as subject Copyright 2010-2012, Nodes ApS. (http://www.nodesagency.com/) Licensed under The MIT License Redistributions of files must retain the above copyright notice.
Наследование: extends stdClass
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $fields = [] ) : void Constructor
set ( $fields ) sh Set a list of key / values to the stdClass
shouldProcess ( string $mode, mixed $actions = [] ) : boolean Check about they called action, is white listed or blacklisted depending on the mode.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( array $fields = [] ) : void
$fields array
Результат void

set() публичный Метод

sh Set a list of key / values to the stdClass
public set ( $fields )
$fields

shouldProcess() публичный Метод

Modes: only => only if in array (white list) not => only if NOT in array (blacklist)
public shouldProcess ( string $mode, mixed $actions = [] ) : boolean
$mode string
$actions mixed
Результат boolean