Свойство | Тип | Описание | |
---|---|---|---|
$articles | Newscoop\Entity\Article | ||
$created | string | ||
$enabled | boolean | ||
$fields | |||
$id | integer | ||
$modified | string | ||
$name | string | ||
$template |
Метод | Описание | |
---|---|---|
__construct ( |
Constructs the Snippet | |
addArticle ( |
Add an Article to the Snippet | |
getArticles ( ) : |
Return the attached Articles | |
getCreated ( ) : DateTime | Getter for created | |
getEnabled ( ) : mixed | Getter for enabled | |
getFields ( ) : |
Getter for fields | |
getFieldsWithoutBackend ( ) : |
Getter for fields without the Backend scope | |
getId ( ) : integer | Getter for id | |
getModified ( ) : mixed | Getter for modified | |
getName ( ) : string | Getter for Name | |
getTemplate ( ) : |
Getter for Template | |
getTemplateId ( ) : integer | Returns the Template id | |
getTemplateName ( ) : string | Returns the Template Name | |
hasName ( ) : boolean | Check if Snippet has a name | |
removeArticle ( |
Remove an Article from the Snippet | |
render ( ) : string | Renders the Snippet with the Data into the Template | |
setCreated ( DateTime $created = null ) : Newscoop\Entity\Snippet | Setter for created | |
setData ( string $fieldName, string $fieldData = null ) : Newscoop\Entity\Snippet | Set Snippet Data to the appropriate fields | |
setEnabled ( mixed $enabled ) : self | Setter for enabled | |
setId ( integer $id ) : Newscoop\Entity\Snippet | Setter for id | |
setModified ( mixed $modified = null ) : self | Setter for modified | |
setName ( string $name ) : Newscoop\Entity\Snippet | Setter for Name | |
setTemplate ( |
Setter for Template |
Метод | Описание | |
---|---|---|
addField ( |
Add Snippet fields |
public __construct ( |
||
$template | SnippetTemplate to set for this Snippet |
public addArticle ( |
||
$article | the Article to attach | |
Результат | Newscoop\Entity\Snippet |
public getArticles ( ) : |
||
Результат |
public getFields ( ) : |
||
Результат |
public getFieldsWithoutBackend ( ) : |
||
Результат |
public getTemplate ( ) : |
||
Результат |
public getTemplateId ( ) : integer | ||
Результат | integer | template id |
public getTemplateName ( ) : string | ||
Результат | string | template name |
public removeArticle ( |
||
$article | the Article to remove | |
Результат | Newscoop\Entity\Snippet |
public setCreated ( DateTime $created = null ) : Newscoop\Entity\Snippet | ||
$created | DateTime | Value to set |
Результат | Newscoop\Entity\Snippet |
public setEnabled ( mixed $enabled ) : self | ||
$enabled | mixed | Value to set |
Результат | self |
public setModified ( mixed $modified = null ) : self | ||
$modified | mixed | Value to set |
Результат | self |
public setTemplate ( |
||
$template | ||
Результат | Newscoop\Entity\Snippet |
protected Newscoop\Entity\Article $articles | ||
Результат | Newscoop\Entity\Article |
protected ArrayCollection,Doctrine\Common\Collections $fields | ||
Результат |