PHP 클래스 Crud\Listener\RedirectListener

Listener to improve upon the default redirection behavior of Crud actions Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
상속: extends BaseListener
파일 보기 프로젝트 열기: friendsofcake/crud

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaultConfig array Settings

공개 메소드들

메소드 설명
beforeRedirect ( Cake\Event\Event $event ) : void Redirect callback
implementedEvents ( ) : array Returns a list of all events that will fire in the controller during its lifecycle.
reader ( string $key, mixed $reader = null ) : mixed Add or replace a reader
setup ( ) : void Setup method

보호된 메소드들

메소드 설명
_getKey ( Crud\Event\Subject $subject, string $reader, string $key ) : mixed Return the value of $type with $key
_getUrl ( Crud\Event\Subject $subject, array $url ) : array Get the new redirect URL

메소드 상세

_getKey() 보호된 메소드

Return the value of $type with $key
protected _getKey ( Crud\Event\Subject $subject, string $reader, string $key ) : mixed
$subject Crud\Event\Subject Subject
$reader string Reader
$key string Key
리턴 mixed

_getUrl() 보호된 메소드

Expand configurations where possible and replace the placeholder with the actual value
protected _getUrl ( Crud\Event\Subject $subject, array $url ) : array
$subject Crud\Event\Subject Subject
$url array URL
리턴 array

beforeRedirect() 공개 메소드

If a special redirect key is provided, change the redirection URL target
public beforeRedirect ( Cake\Event\Event $event ) : void
$event Cake\Event\Event Event
리턴 void

implementedEvents() 공개 메소드

You can override this function to add your own listener callbacks
public implementedEvents ( ) : array
리턴 array

reader() 공개 메소드

Add or replace a reader
public reader ( string $key, mixed $reader = null ) : mixed
$key string Key
$reader mixed Reader
리턴 mixed

setup() 공개 메소드

Called when the listener is initialized Setup the default readers
public setup ( ) : void
리턴 void

프로퍼티 상세

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

Settings
protected array $_defaultConfig
리턴 array