Пример #1
1
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "category";
     $this->filterField = $contentElement->getFilter("category");
     parent::__construct($contentElement);
     // if currently selected category is not compatible with section then reset
     if (intval(JRequest::getVar('filter_reset', 0))) {
         $this->section_filter_value = -1;
     } else {
         if ($this->rememberValues) {
             $this->section_filter_value = JFactory::getApplication()->getUserStateFromRequest('section_filter_value', 'section_filter_value', -1);
         } else {
             $this->section_filter_value = JRequest::getVar("section_filter_value", -1);
         }
     }
     if ($this->section_filter_value != -1 and $this->filter_value >= 0) {
         $cat = JTable::getInstance('category');
         $cat->load($this->filter_value);
         if ($cat->section != $this->section_filter_value) {
             $this->filter_value = -1;
         }
     }
     if ($this->section_filter_value == 0) {
         $this->filter_value = 0;
     }
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "polloptions_empty";
     $this->filterField = $contentElement->getFilter("polloptions_empty");
     parent::__construct($contentElement);
 }
Пример #3
0
 public function translationTrashFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "trash";
     $this->filterField = $contentElement->getFilter("trash");
     parent::__construct($contentElement);
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-1";
     $this->filterType = "hikashop_product_category";
     $this->filterField = $contentElement->getFilter("hikashop_product_category");
     parent::__construct($contentElement);
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-1";
     $this->filterType = "rwf_valueform";
     $this->filterField = $contentElement->getFilter("rwf_valueform");
     parent::__construct($contentElement);
 }
Пример #6
0
 public function translationPublishedFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "published";
     $this->filterField = $contentElement->getFilter("published");
     parent::__construct($contentElement);
 }
Пример #7
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-+-+";
     $this->filterType = "menutype";
     $this->filterField = $contentElement->getFilter("menutype");
     parent::__construct($contentElement);
 }
Пример #8
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "author";
     $this->filterField = $contentElement->getFilter("author");
     parent::__construct($contentElement);
 }
Пример #9
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "reset";
     $this->filterField = "";
     parent::__construct($contentElement);
 }
Пример #10
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = "";
     $this->filterType = "keyword";
     $this->filterField = $contentElement->getFilter("keyword");
     parent::__construct($contentElement);
 }
Пример #11
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = "";
     $this->filterType = "jfkeyword";
     $params = $contentElement->getFilter("jfkeyword");
     list($this->filterField, $this->label) = explode("|", $params);
     parent::__construct($contentElement);
 }
Пример #12
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "lastchanged";
     $this->filterField = $contentElement->getFilter("changed");
     list($this->_createdField, $this->_modifiedField) = explode("|", $this->filterField);
     parent::__construct($contentElement);
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-1";
     $this->filterType = "contact_details_category";
     $this->filterField = $contentElement->getFilter("contact_details_category");
     //$params = $contentElement->getFilter("contact_details_category");
     //list($this->filterField,$this->label) = explode("|",$params);
     parent::__construct($contentElement);
 }