PHP Class Newscoop\Entity\Repository\Snippet\SnippetTemplateRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode Description
deleteSnippetTemplate ( $id, $force = false )
findSnippetTemplatesByName ( string $name, string $show = 'enabled', boolean $fuzzy = false ) : Doctrine\ORM\Query Find SnippetTemplate by Name
getCurrentlyUsed ( ) : Doctrine\ORM\Query Get Active SnippetTemplates
getDisabled ( ) : Doctrine\ORM\Query Get Disabled SnippetTemplates
getEnabled ( ) : Doctrine\ORM\Query Get Enabled SnippetTemplates
getFavourites ( ) : Doctrine\ORM\Query Get Favourited SnippetTemplates
getPrototype ( ) : SnippetTemplate Get new instance of the Snippet
getSnippetTemplateQueryBuilder ( $show )
getSnippetTemplatesForArticle ( $articleNr, $languageCode, string $show = 'enabled' ) : Doctrine\ORM\Query Get SnippetsTemplates for Article
getTemplateById ( integer $id, string $show = 'enabled' ) : SnippetTemplate Get SnippetTemplate by ID
save ( SnippetTemplate $snippetTemplate )

Method Details

deleteSnippetTemplate() public méthode

public deleteSnippetTemplate ( $id, $force = false )

findSnippetTemplatesByName() public méthode

Find SnippetTemplate by Name
public findSnippetTemplatesByName ( string $name, string $show = 'enabled', boolean $fuzzy = false ) : Doctrine\ORM\Query
$name string SnippetTemplate Name
$show string Define which Snippets to return, 'enabled' | 'disabled' | 'all'
$fuzzy boolean Find fuzzy or not
Résultat Doctrine\ORM\Query Query

getCurrentlyUsed() public méthode

Get Active SnippetTemplates
public getCurrentlyUsed ( ) : Doctrine\ORM\Query
Résultat Doctrine\ORM\Query Query

getDisabled() public méthode

Get Disabled SnippetTemplates
public getDisabled ( ) : Doctrine\ORM\Query
Résultat Doctrine\ORM\Query Query

getEnabled() public méthode

Get Enabled SnippetTemplates
public getEnabled ( ) : Doctrine\ORM\Query
Résultat Doctrine\ORM\Query Query

getFavourites() public méthode

Get Favourited SnippetTemplates
public getFavourites ( ) : Doctrine\ORM\Query
Résultat Doctrine\ORM\Query Query

getPrototype() public méthode

Get new instance of the Snippet
public getPrototype ( ) : SnippetTemplate
Résultat Newscoop\Entity\Snippet\SnippetTemplate

getSnippetTemplateQueryBuilder() public méthode

getSnippetTemplatesForArticle() public méthode

Returns all the SnippetsTemplates associated to the Snippets for an Article.
public getSnippetTemplatesForArticle ( $articleNr, $languageCode, string $show = 'enabled' ) : Doctrine\ORM\Query
$show string Define which Snippets to return, 'enabled' | 'disabled' | 'all'
Résultat Doctrine\ORM\Query Query

getTemplateById() public méthode

Get SnippetTemplate by ID
public getTemplateById ( integer $id, string $show = 'enabled' ) : SnippetTemplate
$id integer SnippetTemplate ID
$show string Define which Snippets to return, 'enabled' | 'disabled' | 'all'
Résultat Newscoop\Entity\Snippet\SnippetTemplate

save() public méthode

public save ( SnippetTemplate $snippetTemplate )
$snippetTemplate Newscoop\Entity\Snippet\SnippetTemplate