메소드 |
설명 |
|
__call ( string $name, array $arguments ) : mixed |
Magic __call function, used for when templates use {{ content.title }},
so we can map it to $this->values['title']. |
|
__construct ( Silex\Application $app, string $contenttype = '', array $values = [], boolean $isRootType = true ) |
|
|
fieldinfo ( string $key ) : array |
Get field information for the given field. |
|
fieldtype ( string $key ) : string |
Get the fieldtype for a given fieldname. |
|
getBaseColumns ( ) |
Gets a list of the base columns that are hard-coded into all content
types (rather than configured through contenttypes.yml). |
|
getDecodedValue ( string $name ) : mixed |
Get the decoded version of a value of the current object. |
|
getTemplateContext ( ) |
|
|
next ( string $field = 'datepublish', array $where = [] ) : Content |
Get the next record. In this case 'next' is defined as 'first one published after
this one' by default. You can pass a parameter like 'id' or '-title' to use that as
the column to sort on. |
|
offsetExists ( mixed $offset ) : boolean |
ArrayAccess support. |
|
offsetGet ( mixed $offset ) : mixed |
ArrayAccess support. |
|
offsetSet ( string $offset, mixed $value ) |
ArrayAccess support. |
|
offsetUnset ( string $offset ) |
ArrayAccess support. |
|
preParse ( string $snippet, boolean $allowtwig ) : string |
If passed snippet contains Twig tags, parse the string as Twig, and return the results. |
|
previous ( string $field = 'datepublish', array $where = [] ) : Content |
Get the previous record. In this case 'previous' is defined as 'latest one published before
this one' by default. You can pass a parameter like 'id' or '-title' to use that as
the column to sort on. |
|
setContenttype ( array | string $contenttype ) |
Set the Contenttype for the record. |
|