PHP Класс Newscoop\Entity\Repository\Snippet\SnippetTemplateRepository

Наследование: extends Doctrine\ORM\EntityRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

deleteSnippetTemplate() публичный Метод

public deleteSnippetTemplate ( $id, $force = false )

findSnippetTemplatesByName() публичный Метод

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
Результат Doctrine\ORM\Query Query

getCurrentlyUsed() публичный Метод

Get Active SnippetTemplates
public getCurrentlyUsed ( ) : Doctrine\ORM\Query
Результат Doctrine\ORM\Query Query

getDisabled() публичный Метод

Get Disabled SnippetTemplates
public getDisabled ( ) : Doctrine\ORM\Query
Результат Doctrine\ORM\Query Query

getEnabled() публичный Метод

Get Enabled SnippetTemplates
public getEnabled ( ) : Doctrine\ORM\Query
Результат Doctrine\ORM\Query Query

getFavourites() публичный Метод

Get Favourited SnippetTemplates
public getFavourites ( ) : Doctrine\ORM\Query
Результат Doctrine\ORM\Query Query

getPrototype() публичный Метод

Get new instance of the Snippet
public getPrototype ( ) : SnippetTemplate
Результат Newscoop\Entity\Snippet\SnippetTemplate

getSnippetTemplateQueryBuilder() публичный Метод

getSnippetTemplatesForArticle() публичный Метод

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'
Результат Doctrine\ORM\Query Query

getTemplateById() публичный Метод

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'
Результат Newscoop\Entity\Snippet\SnippetTemplate

save() публичный Метод

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