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
파일 보기 프로젝트 열기: nodesagency/Platform-Crud-Plugin 1 사용 예제들

공개 메소드들

메소드 설명
__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