메소드 |
설명 |
|
excerpt ( $length = 200, $includeTitle = false, $focus = null ) |
Alias for getExcerpt() |
|
get ( string $name ) : mixed |
Pseudo-magic function, used for when templates use {{ content.get(title) }},
so we can map it to $this->values['title']. |
|
getExcerpt ( integer $length = 200, boolean $includeTitle = false, string | array $focus = null ) : Twig_Markup |
Create an excerpt for the content. |
|
getImage ( ) : string |
Get the first image in the content. |
|
getTitle ( $allowBasicTags = false ) : string |
Get the title, name, caption or subject. |
|
getTitleColumnName ( ) : array |
Get the columnname of the title, name, caption or subject. |
|
getValues ( boolean $json = false, boolean $stripped = false ) : array |
Return a content objects values. |
|
hasTemplateFields ( ) : boolean |
Check if a ContentType field has a template set. |
|
setFromPost ( array $values, string $contenttype ) : void |
Set a ContentType record values from a HTTP POST. |
|
setValue ( string $key, mixed $value ) |
Set a ContentType record's individual value. |
|
setValues ( array $values ) |
Set a ContentType record's values. |
|