\Content\Model\TableContentRevisionsTable

Represents "content_revisions" database table.

Summary

Methods
Properties
Constants
initialize()
beforeFind()
No public properties found
No constants found
_initializeSchema()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

initialize()

initialize(array $config) : void

Initialize a table instance. Called after the constructor.

Parameters

array $config

Configuration options passed to the constructor

beforeFind()

beforeFind(\Cake\Event\Event $event, \Cake\ORM\Query $query, \ArrayObject $options, boolean $primary) : \Cake\ORM\Query

Attaches ContentType information to each content revision.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Cake\ORM\Query $query

The query object

\ArrayObject $options

Additional options given as an array

boolean $primary

Whether this find is a primary query or not

Returns

\Cake\ORM\Query

_initializeSchema()

_initializeSchema(\Cake\Database\Schema\Table $table) : \Cake\Database\Schema\Table

Alter the schema used by this table.

Parameters

\Cake\Database\Schema\Table $table

The table definition fetched from database

Returns

\Cake\Database\Schema\Table —

the altered schema