Property | Type | Description | |
---|---|---|---|
$isRootType | Whether this is a "real" contenttype or an embedded ones |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
getTemplateFieldsContentType ( ) : string | Get the template associate with a ContentType field. |
public excerpt ( $length = 200, $includeTitle = false, $focus = null ) |
protected getTemplateFieldsContentType ( ) : string | ||
return | string |
public getTitleColumnName ( ) : array | ||
return | array |
public hasTemplateFields ( ) : boolean | ||
return | boolean |