addSnippetToArticle()
публичный метод
public addSnippetToArticle ( Snippet $snippet, Article $article ) |
$snippet |
Newscoop\Entity\Snippet |
|
$article |
Newscoop\Entity\Article |
|
findSnippetsByNameForArticle()
публичный метод
getArticleSnippetQueryBuilder()
защищенный метод
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' |
Результат |
Doctrine\ORM\Querybuilder |
$queryBuilder |
getArticleSnippets()
публичный метод
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' |
Результат |
Doctrine\ORM\Query |
Query |
getSnippetArticles()
защищенный метод
Get all the Articles attached to a Snippet
protected getSnippetArticles ( integer $id ) : Doctrine\Common\Collections\ArrayCollection |
$id |
integer |
SnippetID |
Результат |
Doctrine\Common\Collections\ArrayCollection |
|
removeSnippetFromArticle()
публичный метод
public removeSnippetFromArticle ( Snippet $snippet, Article $article ) |
$snippet |
Newscoop\Entity\Snippet |
|
$article |
Newscoop\Entity\Article |
|