PHP Class 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.
Exibir arquivo
Open project: nodesagency/Platform-Crud-Plugin
Class Usage Examples
Public Methods
Method |
Description |
|
__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. |
|
Method Details
__construct()
public method
sh
Set a list of key / values to the stdClass
public set ( $fields ) |
$fields |
|
|
shouldProcess()
public method
Modes:
only => only if in array (white list)
not => only if NOT in array (blacklist)