* getByTag("fruits", null); * getByTag(null, "banana"); * getByTag("fruits", "banana"); * * @abstract * @param null $category The metadata category to search for * @param null $value The metadata value to search for * @param bool $showEmbargoed Boolean that specifies if embargoed documents should be included in results * @return DMSDocumentInterface */ public function getByTag($category = null, $value = null, $showEmbargoed = false); /** * Returns a number of Document objects that match a full-text search of the Documents and their contents * (if contents is searchable and compatible search module is installed - e.g. FullTextSearch module) * @abstract * @param $searchText String to search for * @param bool $showEmbargoed Boolean that specifies if embargoed documents should be included in results * @return DMSDocumentInterface */ public function getByFullTextSearch($searchText, $showEmbargoed = false); /** * Returns a list of Document objects associated with a Page via intermediary document sets * * @param SiteTree $page SiteTree to fetch the associated Documents from * @param bool $showEmbargoed Boolean that specifies if embargoed documents should be included in results * @return ArrayList Document list associated with the Page */ public function getByPage(SiteTree $page, $showEmbargoed = false); /** * Returns a list of Document Set objects associated with a Page * * @param SiteTree $page SiteTree to fetch the associated Document Sets from * @return ArrayList Document list associated with the Page */ public function getDocumentSetsByPage(SiteTree $page); }