public loadByQuery ( PHPCR\Query\QueryInterface $query, $locale, $webspaceKey = null, $excludeGhost = true, $loadGhostContent = false ) | ||
$query | PHPCR\Query\QueryInterface |
/** * Return snippets. * * If $type is given then only return the snippets of that type. * * @param string $languageCode * @param string $type Optional snippet type * @param int $offset Optional offset * @param int $max Optional max * @param string $search * @param string $sortBy * @param string $sortOrder * * @throws \InvalidArgumentException * * @return Snippet[] */ public function getSnippets($languageCode, $type = null, $offset = null, $max = null, $search = null, $sortBy = null, $sortOrder = null) { $query = $this->getSnippetsQuery($languageCode, $type, $offset, $max, $search, $sortBy, $sortOrder); return $this->contentMapper->loadByQuery($query, $languageCode, null, false, true); }