PHP 클래스 CakeDC\Users\Auth\Rules\AbstractRule

상속: implements CakeDC\Users\Auth\Rules\Rule, use trait Cake\Core\InstanceConfigTrait, use trait Cake\ORM\Locator\LocatorAwareTrait, use trait Cake\Datasource\ModelAwareTrait
파일 보기 프로젝트 열기: CakeDC/users

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaultConfig default config

공개 메소드들

메소드 설명
__construct ( array $config = [] ) AbstractRule constructor.
allowed ( array $user, string $role, Cake\Network\Request $request ) : boolean Check the current entity is owned by the logged in user

보호된 메소드들

메소드 설명
_getTable ( Cake\Network\Request $request, mixed $table = null ) : Table Get a table from the alias, table object or inspecting the request for a default table
_getTableFromRequest ( Cake\Network\Request $request ) : Table Inspect the request and try to retrieve a table based on the current controller

메소드 상세

__construct() 공개 메소드

AbstractRule constructor.
public __construct ( array $config = [] )
$config array Rule config

_getTable() 보호된 메소드

Get a table from the alias, table object or inspecting the request for a default table
protected _getTable ( Cake\Network\Request $request, mixed $table = null ) : Table
$request Cake\Network\Request request
$table mixed table
리턴 Cake\ORM\Table

_getTableFromRequest() 보호된 메소드

Inspect the request and try to retrieve a table based on the current controller
protected _getTableFromRequest ( Cake\Network\Request $request ) : Table
$request Cake\Network\Request request
리턴 Cake\ORM\Table

allowed() 추상적인 공개 메소드

Check the current entity is owned by the logged in user
abstract public allowed ( array $user, string $role, Cake\Network\Request $request ) : boolean
$user array Auth array with the logged in data
$role string role of the user
$request Cake\Network\Request current request, used to get a default table if not provided
리턴 boolean

프로퍼티 상세

$_defaultConfig 보호되어 있는 프로퍼티

default config
protected $_defaultConfig