Property | Type | Description | |
---|---|---|---|
$config | |||
$contenttype | |||
$group | |||
$id | |||
$relation | |||
$sortorder | |||
$taxonomy | |||
$user | |||
$values |
Property | Type | Description | |
---|---|---|---|
$app | Silex\Application |
Method | Description | |
---|---|---|
__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 = [] ) : |
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 = [] ) : |
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. |
public static getBaseColumns ( ) |
public getDecodedValue ( string $name ) : mixed | ||
$name | string | name of the value to get |
return | mixed | The decoded value or null when no value available |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | |
return | boolean |
public offsetUnset ( string $offset ) | ||
$offset | string |
public setContenttype ( array | string $contenttype ) | ||
$contenttype | array | string |