PHP Class NodesController

Inheritance: extends BaseController
显示文件 Open project: croogo/croogo Class Usage Examples

Public Properties

Property Type Description
$components array Components
$name string Controller name
$presetVars array Preset Variable Search
$uses array Models used by the Controller

Public Methods

Method Description
admin_add ( string $typeAlias = 'node' ) : void Admin add
admin_add_meta ( ) : void Admin add meta
admin_create ( ) : void Admin create
admin_delete ( integer $id = null ) : void Admin delete
admin_delete_meta ( integer $id = null ) : void Admin delete meta
admin_edit ( integer $id = null ) : void Admin edit
admin_hierarchy ( ) : void Display node hierarchy scoped on Content type
admin_index ( ) : void Admin index
admin_movedown ( integer $id, integer $step = 1 ) Move a node down when scoped to Content type
admin_moveup ( integer $id, integer $step = 1 ) : void Move a node up when scoped to Content type
admin_process ( ) : void Admin process
admin_toggle ( string $id = null, integer $status = null ) : void Toggle Node status
admin_update_paths ( ) : void Admin update paths
afterConstruct ( ) afterConstruct
beforeFilter ( ) : void beforeFilter
index ( ) : void Index
promoted ( ) : void Promoted
search ( string $typeAlias = null ) : void Search
term ( ) : void Term
view ( integer $id = null ) : void View

Protected Methods

Method Description
_setCommonVariables ( array $type ) : void Set common form variables to views
_viewFallback ( mixed $views ) : string View Fallback

Method Details

_setCommonVariables() protected method

Set common form variables to views
protected _setCommonVariables ( array $type ) : void
$type array Type data
return void

_viewFallback() protected method

View Fallback
Deprecation: Use CroogoComponent::viewFallback()
protected _viewFallback ( mixed $views ) : string
$views mixed
return string

admin_add() public method

Admin add
public admin_add ( string $typeAlias = 'node' ) : void
$typeAlias string
return void

admin_add_meta() public method

Admin add meta
Deprecation: Use MetaController::admin_add_meta()
public admin_add_meta ( ) : void
return void

admin_create() public method

Admin create
public admin_create ( ) : void
return void

admin_delete() public method

Admin delete
public admin_delete ( integer $id = null ) : void
$id integer
return void

admin_delete_meta() public method

Admin delete meta
Deprecation: Use MetaController::admin_delete_meta()
public admin_delete_meta ( integer $id = null ) : void
$id integer
return void

admin_edit() public method

Admin edit
public admin_edit ( integer $id = null ) : void
$id integer
return void

admin_hierarchy() public method

Display node hierarchy scoped on Content type
public admin_hierarchy ( ) : void
return void

admin_index() public method

Admin index
public admin_index ( ) : void
return void

admin_movedown() public method

Move a node down when scoped to Content type
public admin_movedown ( integer $id, integer $step = 1 )
$id integer Node id
$step integer Step

admin_moveup() public method

Move a node up when scoped to Content type
public admin_moveup ( integer $id, integer $step = 1 ) : void
$id integer Node id
$step integer Step
return void

admin_process() public method

Admin process
public admin_process ( ) : void
return void

admin_toggle() public method

Toggle Node status
public admin_toggle ( string $id = null, integer $status = null ) : void
$id string Node id
$status integer Current Node status
return void

admin_update_paths() public method

Admin update paths
public admin_update_paths ( ) : void
return void

afterConstruct() public method

afterConstruct
public afterConstruct ( )

beforeFilter() public method

beforeFilter
public beforeFilter ( ) : void
return void

index() public method

Index
public index ( ) : void
return void

promoted() public method

Promoted
public promoted ( ) : void
return void

term() public method

Term
public term ( ) : void
return void

view() public method

View
public view ( integer $id = null ) : void
$id integer
return void

Property Details

$components public_oe property

Components
public array $components
return array

$name public_oe property

Controller name
public string $name
return string

$presetVars public_oe property

Preset Variable Search
public array $presetVars
return array

$uses public_oe property

Models used by the Controller
public array $uses
return array