Свойство | 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 |
Méthode | 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 | ||
Résultat | string | name |
public addField ( |
||
$field | Field to add | |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public createField ( array $parameters ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$parameters | array | Array with Parameters |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public executeController ( |
||
$snippet |
public getController ( ) : string | ||
Résultat | string |
public getFavourite ( ) : boolean | ||
Résultat | boolean |
public getIconActive ( ) : text | ||
Résultat | text | base64 encoded image |
public getIconInactive ( ) : text | ||
Résultat | text | base64 encoded image |
public getSnippets ( ) : |
||
Résultat |
public getTemplateCode ( ) : string | ||
Résultat | string | JSON |
public setController ( string $controller ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$controller | string | Value to set |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public setCreated ( DateTime $created = null ) : |
||
$created | DateTime | Value to set |
Résultat |
public setEnabled ( mixed $enabled ) : self | ||
$enabled | mixed | Value to set |
Résultat | self |
public setFavourite ( boolean $favourite ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$favourite | boolean | |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public setIconActive ( string $iconActive ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$iconActive | string | base64 encoded image $iconInactive |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public setIconInactive ( string $iconInactive ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$iconInactive | string | base64 encoded image |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
public setModified ( mixed $modified = null ) : self | ||
$modified | mixed | Value to set |
Résultat | self |
public setTemplateCode ( string $templateCode ) : Newscoop\Entity\Snippet\SnippetTemplate | ||
$templateCode | string | Template Code to Set (Twig format) |
Résultat | Newscoop\Entity\Snippet\SnippetTemplate |
protected ArrayCollection,Doctrine\Common\Collections $fields | ||
Résultat |
protected ArrayCollection,Doctrine\Common\Collections $snippets | ||
Résultat |