addSnippetToArticle()
public method
public addSnippetToArticle ( Snippet $snippet, Article $article ) |
$snippet |
Newscoop\Entity\Snippet |
|
$article |
Newscoop\Entity\Article |
|
findSnippetsByNameForArticle()
public method
getArticleSnippetQueryBuilder()
protected method
This internal function is used by almost all Repository functions,
it allows for more consistency. The rest of the doc also applies
to the functions using it.
Returns all the associated Snippets to an Article. If the SnippetTemplate
is disabled, the Snippets depending on it won't be returned.
By Default all Snippets that are Disabled themselves are not returned.
protected getArticleSnippetQueryBuilder ( $articleNr, string $language, string $show ) : Doctrine\ORM\Querybuilder |
$language |
string |
Language code in format "en" for example. |
$show |
string |
Define which Snippets to return, 'enabled' | 'disabled' | 'all' |
return |
Doctrine\ORM\Querybuilder |
$queryBuilder |
getArticleSnippets()
public method
Returns all the associated Snippets to an Article. If the SnippetTemplate
is disabled, the Snippets depending on it won't be returned.
By Default all Snippets that are Disabled themselves are not returned.
public getArticleSnippets ( $articleNr, $languageCode, string $show = 'enabled' ) : Doctrine\ORM\Query |
$show |
string |
Define which Snippets to return, 'enabled' | 'disabled' | 'all' |
return |
Doctrine\ORM\Query |
Query |
getSnippetArticles()
protected method
Get all the Articles attached to a Snippet
protected getSnippetArticles ( integer $id ) : Doctrine\Common\Collections\ArrayCollection |
$id |
integer |
SnippetID |
return |
Doctrine\Common\Collections\ArrayCollection |
|
removeSnippetFromArticle()
public method
public removeSnippetFromArticle ( Snippet $snippet, Article $article ) |
$snippet |
Newscoop\Entity\Snippet |
|
$article |
Newscoop\Entity\Article |
|