PHP Trait Crud\Core\ProxyTrait

Datei anzeigen Open project: friendsofcake/crud

Protected Properties

Property Type Description
$_entity

Protected Methods

Method Description
_action ( string | null $name = null ) : BaseAction Proxy method for $this->_crud()->action()
_controller ( ) : Controller Proxy method for $this->_container->_controller
_crud ( ) : CrudComponent Proxy method for $this->_container->_crud
_entity ( array $data = null, array $options = [] ) : Cake\ORM\Entity Get a fresh entity instance from the primary Table
_listener ( string $name ) : BaseListener Proxy method for $this->_crud()->listener()
_request ( ) : Cake\Network\Request Proxy method for $this->_container->_request
_response ( ) : Response Proxy method for $this->_controller()->response
_session ( ) : Session Proxy method for $this->_crud()->Session
_subject ( array $additional = [] ) : Crud\Event\Subject Proxy method for $this->_crud()->getSubject()
_table ( ) : Table Get a table instance
_trigger ( string $eventName, Crud\Event\Subject $data = null ) : Cake\Event\Event Proxy method for $this->_crud()->trigger()
_validationErrors ( ) : array Proxy method for $this->_crud()->validationErrors()

Method Details

_action() protected method

Primarily here to ease unit testing
protected _action ( string | null $name = null ) : BaseAction
$name string | null Action name
return Crud\Action\BaseAction

_controller() protected method

Primarily here to ease unit testing
protected _controller ( ) : Controller
return Cake\Controller\Controller

_crud() protected method

Proxy method for $this->_container->_crud
protected _crud ( ) : CrudComponent
return Crud\Controller\Component\CrudComponent

_entity() protected method

Get a fresh entity instance from the primary Table
protected _entity ( array $data = null, array $options = [] ) : Cake\ORM\Entity
$data array Data array
$options array A list of options for the object hydration.
return Cake\ORM\Entity

_listener() protected method

Primarily here to ease unit testing
protected _listener ( string $name ) : BaseListener
$name string Listener name
return Crud\Listener\BaseListener

_request() protected method

Primarily here to ease unit testing
protected _request ( ) : Cake\Network\Request
return Cake\Network\Request

_response() protected method

Primarily here to ease unit testing
protected _response ( ) : Response
return Cake\Network\Response

_session() protected method

Primarily here to ease unit testing
protected _session ( ) : Session
return Cake\Network\Session

_subject() protected method

Proxy method for $this->_crud()->getSubject()
protected _subject ( array $additional = [] ) : Crud\Event\Subject
$additional array Array of subject properties to set
return Crud\Event\Subject

_table() protected method

Get a table instance
protected _table ( ) : Table
return Cake\ORM\Table

_trigger() protected method

Primarily here to ease unit testing
protected _trigger ( string $eventName, Crud\Event\Subject $data = null ) : Cake\Event\Event
$eventName string Event name
$data Crud\Event\Subject Event data
return Cake\Event\Event

_validationErrors() protected method

Primarily here to ease unit testing
protected _validationErrors ( ) : array
return array

Property Details

$_entity protected_oe property

protected $_entity