PHP Class Crud\Action\Bulk\ToggleAction

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
Inheritance: extends Crud\Action\Bulk\BaseAction
Datei anzeigen Open project: friendsofcake/crud

Public Methods

Method Description
__construct ( Controller $Controller, array $config = [] ) : void Constructor

Protected Methods

Method Description
_bulk ( Query $query = null ) : boolean Handle a bulk toggle
_handle ( ) : Response Handle a bulk event

Method Details

__construct() public method

Constructor
public __construct ( Controller $Controller, array $config = [] ) : void
$Controller Cake\Controller\Controller Controller instance
$config array Default settings
return void

_bulk() protected method

Handle a bulk toggle
protected _bulk ( Query $query = null ) : boolean
$query Cake\ORM\Query The query to act upon
return boolean

_handle() protected method

Handle a bulk event
protected _handle ( ) : Response
return Cake\Network\Response