Newscoop\Entity\Repository\SnippetRepository::getSnippets PHP 메소드

getSnippets() 공개 메소드

Returns all Snippets. 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 getSnippets ( string $show = 'enabled' ) : Doctrine\ORM\Query
$show string Define which Snippets to return, 'enabled' | 'disabled' | 'all'
리턴 Doctrine\ORM\Query Query
    public function getSnippets($show = 'enabled')
    {
        $queryBuilder = $this->getSnippetQueryBuilder($show);
        $query = $queryBuilder->getQuery();
        return $query;
    }