$id
$id : integer
ID
Content model
$dominant_attachment_id : integer
Dominant attachment reference
None found |
None found |
None found |
getSrn() : string
Return model's SRN. Model should implement a 'srn_name' protected value.
Otherwise, this will pull from the 'getSource' method
SRN
None found |
findFirstBySrn(string $srn) : object
Find model by SRN
string | $srn | complete SRN |
Model object
None found |
setPushableOptions(array $opts = array())
Set default pushable options for model, uses an array with the keys
Example:
class Content extends BaseModel
{
use Pushable;
...
$this->setPushableOptions([
'category' => 'contentupdate',
'related' => [
'export',
'authors',
'tags',
'assignment',
'attachment',
'audit',
'export',
'dominantAttachment'
]
]
}
array | $opts |
None found |
pushToSocket(array $kwargs = array())
Push the model to the web socket server via the queue service Options are set as keyword arguments in the form of <ul> <li>category - (string) supplemental category</li> <li>options - (array) override options, see setPushableOptions for more info</li> </ul>
array | $kwargs |
None found |
pushToConnector( $kwargs = array())
Push items to connected front end
$kwargs |
None found |
None found |
emitEvent(\Ceo\Core\Traits\const $event, array $data = array()) : \Ceo\Core\Traits\Event
Emit event
\Ceo\Core\Traits\const | $event | |
array | $data |
None found |
None found |
hasProperty(string $str) : boolean
Determine if the model has a public property.
Useful in determining valid sorting options on the front end.
string | $str | Property |
None found |
setRelated(string $relation, mixed $value = array()) : self
Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.
I think it has something to do with implicit transactions, but I'm not entirely sure...
string | $relation | |
mixed | $value |
None found |
None found |
find(mixed $parameters = null) : array<mixed,\Ceo\Core\Models\Content>
Allows to query a set of records that match the specified conditions
mixed | $parameters |
None found |
findFirst(mixed $parameters = null) : \Ceo\Core\Models\Content
Allows to query the first record that match the specified conditions
mixed | $parameters |
None found |
toArray(array $ops = false) : array
Array override
array | $ops | Options for generation |
None found |
getVersionMetaProperties() : array
Returns only the metaProperties that belong to this version of the content item
Keyed array of content items, with fields as keys
None found |
getAuditTrail( $params = array()) : array
Return audit logs for this content item
$params |
Collection of AuditLog objects
None found |
None found |