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.
Inheritance: extends stdClass
Afficher le fichier Open project: nodesagency/Platform-Crud-Plugin Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( array $fields = [] ) : void
$fields array
Résultat void

set() public méthode

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

shouldProcess() public méthode

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
Résultat boolean