* getByTag("fruits", null); * getByTag(null, "banana"); * getByTag("fruits", "banana"); * * * @deprecated 2.0 Will be removed in future in favour of using silverstripe/taxonomy * @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 * @abstract * @param $page SiteTree to fetch the associated Documents from * @param bool $showEmbargoed Boolean that specifies if embargoed documents should be included in results * @return DataList Document list associated with the Page */ public function getByPage($page, $showEmbargoed = false); }