PHP Class PagesControllerEventListener

Inheritance: extends BcControllerEventListener
Exibir arquivo Open project: baserproject/basercms

Public Properties

Property Type Description
$Page boolean | null | object ページモデル
$events array イベント
$oldPath null コンテンツのフォルダ間移動の際に利用

Public Methods

Method Description
__construct ( ) PagesControllerEventListener constructor.
contentsAfterMove ( CakeEvent $event ) Contents After Move
contentsAfterTrashReturn ( CakeEvent $event ) Contents After Trash Return
contentsBeforeDelete ( CakeEvent $event ) Contents Before Delete
contentsBeforeMove ( CakeEvent $event ) : boolean | void Contents Before Move

Method Details

__construct() public method

PagesControllerEventListener constructor.
public __construct ( )

contentsAfterMove() public method

テンプレートの移動が目的
public contentsAfterMove ( CakeEvent $event )
$event CakeEvent

contentsAfterTrashReturn() public method

ゴミ箱から戻した固定ページのテンプレート生成が目的
public contentsAfterTrashReturn ( CakeEvent $event )
$event CakeEvent

contentsBeforeDelete() public method

ゴミ箱に入れた固定ページのテンプレートの削除が目的
public contentsBeforeDelete ( CakeEvent $event )
$event CakeEvent

contentsBeforeMove() public method

oldPath を取得する事が目的
public contentsBeforeMove ( CakeEvent $event ) : boolean | void
$event CakeEvent
return boolean | void

Property Details

$Page public_oe property

ページモデル
public bool|null|object $Page
return boolean | null | object

$events public_oe property

イベント
public array $events
return array

$oldPath public_oe property

コンテンツのフォルダ間移動の際に利用
public null $oldPath
return null