Esempio n. 1
0
 public function __construct(&$subject, $config = array())
 {
     parent::__construct($subject, $config);
     $this->set('highlighting', array("title", "title_*", "body_*", "metadescription_*", "category_*"));
     $db = JFactory::getDBO();
     $query = $db->getQuery(true);
     $query->select(array('name', 'title'))->from('#__jreviews_fields')->where("location='content'");
     $db->setQuery($query);
     $array = array();
     foreach ($db->loadObjectList() as $item) {
         $key = JString::strtolower(JStringNormalise::toVariable($item->name)) . '_fc';
         $array[$key] = $item->title;
     }
     $this->set('operators', $array);
 }
Esempio n. 2
0
 public function __construct(&$subject, $config = array())
 {
     parent::__construct($subject, $config);
     $this->set('highlighting', array("title", "title_*", "body_*", "metadescription_*", "category_*"));
 }
Esempio n. 3
0
 public function __construct(&$subject, $config = array())
 {
     $this->set('highlighting', array("title", "body", "link", "category"));
     parent::__construct($subject, $config);
 }