Property | Type | Description | |
---|---|---|---|
$controller | string | ||
$created | string | ||
$enabled | boolean | ||
$favourite | boolean | ||
$fields | |||
$iconActive | base64 encoded image | ||
$iconInactive | base64 encoded image | ||
$id | integer | ||
$modified | string | ||
$name | string | ||
$snippets | |||
$templateCode | text |
Method | Description | |
---|---|---|
__construct ( ) | Constructs the SnippetTemplate | |
__toString ( ) : string | Returns SnippetTemplate name | |
addField ( |
Add Snippet Template Field | |
createField ( array $parameters ) : Newscoop\Entity\Snippet\SnippetTemplate | Create and add Snippet Template Field | |
executeController ( |
||
getController ( ) : string | Getter for Controller | |
getCreated ( ) : DateTime | Getter for created | |
getEnabled ( ) : mixed | Getter for enabled | |
getFavourite ( ) : boolean | Getter for favourite | |
getFields ( ) : mixed | Getter for field | |
getIconActive ( ) : text | Getter for iconActive | |
getIconInactive ( ) : text | Getter for iconInactive | |
getId ( ) : integer | Getter for id | |
getModified ( ) : mixed | Getter for modified | |
getName ( ) : string | Getter for name | |
getSnippets ( ) : |
Get Snippets using the selected Template | |
getTemplateCode ( ) : string | Getter for template | |
hasController ( ) | ||
hasFields ( ) : mixed | Check if the Template has Fields | |
hasName ( ) | ||
hasTemplateCode ( ) | ||
setController ( string $controller ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for controller | |
setCreated ( DateTime $created = null ) : |
Setter for created | |
setEnabled ( mixed $enabled ) : self | Setter for enabled | |
setFavourite ( boolean $favourite ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for favourite | |
setIconActive ( string $iconActive ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for iconActive | |
setIconInactive ( string $iconInactive ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for iconInactive | |
setId ( integer $id ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for id | |
setModified ( mixed $modified = null ) : self | Setter for modified | |
setName ( string $name ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for name | |
setTemplateCode ( string $templateCode ) : Newscoop\Entity\Snippet\SnippetTemplate | Setter for template code |
public __toString ( ) : string | ||
return | string | name |
public addField ( |
||
$field | Field to add | |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public createField ( array $parameters ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$parameters | array | Array with Parameters |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public executeController ( |
||
$snippet |
public getIconActive ( ) : text | ||
return | text | base64 encoded image |
public getIconInactive ( ) : text | ||
return | text | base64 encoded image |
public getSnippets ( ) : |
||
return |
public getTemplateCode ( ) : string | ||
return | string | JSON |
public setController ( string $controller ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$controller | string | Value to set |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public setCreated ( DateTime $created = null ) : |
||
$created | DateTime | Value to set |
return |
public setEnabled ( mixed $enabled ) : self | ||
$enabled | mixed | Value to set |
return | self |
public setFavourite ( boolean $favourite ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$favourite | boolean | |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public setIconActive ( string $iconActive ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$iconActive | string | base64 encoded image $iconInactive |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public setIconInactive ( string $iconInactive ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$iconInactive | string | base64 encoded image |
return | Newscoop\Entity\Snippet\SnippetTemplate |
public setModified ( mixed $modified = null ) : self | ||
$modified | mixed | Value to set |
return | self |
public setTemplateCode ( string $templateCode ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$templateCode | string | Template Code to Set (Twig format) |
return | Newscoop\Entity\Snippet\SnippetTemplate |
protected ArrayCollection,Doctrine\Common\Collections $fields | ||
return |
protected ArrayCollection,Doctrine\Common\Collections $snippets | ||
return |