Esempio n. 1
0
 /**
  * Search for tags
  * @param mixed $tags	Array or string
  * @param array $options	Array( 'meta_id' (array), 'meta_parent_id' (array), 'olderThan' (int), 'youngerThan' (int), 'limit' (int), 'sortKey' (string) 'sortOrder' (string) )
  */
 public function search($tags, $options)
 {
     /* Fetch search class */
     require_once IPS_ROOT_PATH . 'sources/classes/tags/search/bootstrap.php';
     /*noLibHook*/
     $search = classes_tags_search_bootstrap::init($this->getApp(), $this->getArea());
     /* fix up tags */
     $tags = $this->_cleanTags($tags, FALSE);
     if ($tags === false) {
         /* Error message is populated at this point */
         return false;
     }
     $metaIds = $search->run($tags, $options);
     return $metaIds;
 }
Esempio n. 2
0
 /**
  * @param field_type $area
  */
 public static function setArea($area)
 {
     classes_tags_search_bootstrap::$area = $area;
 }