示例#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;
     }
 }
 function translationCpfieldFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "cpfield";
     $this->filterField = $contentElement->getFilter("cpfield");
     parent::translationFilter($contentElement);
 }
 function translationPollnameFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "pollname";
     $this->filterField = $contentElement->getFilter("pollname");
     parent::translationFilter($contentElement);
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-1";
     $this->filterType = "rwf_valueform";
     $this->filterField = $contentElement->getFilter("rwf_valueform");
     parent::__construct($contentElement);
 }
示例#5
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = "";
     $this->filterType = "keyword";
     $this->filterField = $contentElement->getFilter("keyword");
     parent::__construct($contentElement);
 }
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "polloptions_empty";
     $this->filterField = $contentElement->getFilter("polloptions_empty");
     parent::__construct($contentElement);
 }
 function translationK2_categoryFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "catid";
     $this->filterField = $contentElement->getFilter("K2_category");
     parent::translationFilter($contentElement);
 }
 function translationFabrikGroupFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "fabrikgroup";
     $this->filterField = $contentElement->getFilter("fabrikgroup");
     parent::translationFilter($contentElement);
 }
 function translationSectionFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "section";
     $this->filterField = $contentElement->getFilter("section");
     parent::translationFilter($contentElement);
 }
示例#10
0
 public function translationTrashFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "trash";
     $this->filterField = $contentElement->getFilter("trash");
     parent::__construct($contentElement);
 }
示例#11
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "author";
     $this->filterField = $contentElement->getFilter("author");
     parent::__construct($contentElement);
 }
	function __construct ($contentElement){
		
		$this->filterNullValue=-1;
		$this->filterType="fform";
		$this->filterField = $contentElement->getFilter("fform");
		parent::translationFilter($contentElement);
	}
示例#13
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "reset";
     $this->filterField = "";
     parent::__construct($contentElement);
 }
示例#14
0
 public function __construct($contentElement)
 {
     $this->filterNullValue = "-+-+";
     $this->filterType = "menutype";
     $this->filterField = $contentElement->getFilter("menutype");
     parent::__construct($contentElement);
 }
 function translationJsextensionFilter($contentElement)
 {
     $this->filterNullValue = 'all';
     $this->filterType = 'jsextension';
     $this->filterField = $contentElement->getFilter('jsextension');
     parent::translationFilter($contentElement);
 }
示例#16
0
 public function translationPublishedFilter($contentElement)
 {
     $this->filterNullValue = -1;
     $this->filterType = "published";
     $this->filterField = $contentElement->getFilter("published");
     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 = "";
     $this->filterType = "jfkeyword";
     $params = $contentElement->getFilter("jfkeyword");
     list($this->filterField, $this->label) = explode("|", $params);
     parent::__construct($contentElement);
 }
示例#19
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);
 }
 function translationJfkeywordFilter($contentElement)
 {
     $this->filterNullValue = "";
     $this->filterType = "jfkeyword";
     $params = $contentElement->getFilter("jfkeyword");
     list($this->filterField, $this->label) = explode("|", $params);
     parent::translationFilter($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);
 }
示例#22
0
 function editTranslation()
 {
     $cid = JRequest::getVar('cid', array(0));
     $translation_id = 0;
     if (strpos($cid[0], '|') >= 0) {
         list($translation_id, $contentid, $language_id) = explode('|', $cid[0]);
         $select_language_id = $this->_select_language_id == -1 && $language_id != -1 ? $language_id : $this->_select_language_id;
     } else {
         $select_language_id = -1;
     }
     $catid = $this->_catid;
     $user = JFactory::getUser();
     $db = JFactory::getDBO();
     $translationObject = null;
     if (isset($catid) && $catid != "") {
         $contentElement = $this->_joomfishManager->getContentElement($catid);
         $translationClass = $contentElement->getTranslationObjectClass();
         $translationObject = new $translationClass($language_id, $contentElement);
         $translationObject->loadFromContentID($contentid);
     }
     // fail if checked out not by 'me'
     if ($translationObject->checked_out && $translationObject->checked_out != $user->id) {
         JFactory::getApplication()->redirect("index.php?option=option=com_joomfish&task=translate", "The content item {$translationObject->title} is currently being edited by another administrator");
     }
     // get existing filters so I can remember them!
     jimport('joomfish.translationfilter.translationfilter');
     $tranFilters = translationFilter::getTranslationFilters($catid, $contentElement);
     // get the view
     $this->view = $this->getView("translate");
     // Set the layout
     $this->view->setLayout('edit');
     // Need to load com_config language strings!
     $lang = JFactory::getLanguage();
     $lang->load('com_config');
     // Assign data for view - should really do this as I go along
     $this->view->assignRef('translationObject', $translationObject);
     $this->view->assignRef('tranFilters', $tranFilters);
     $this->view->assignRef('select_language_id', $select_language_id);
     $filterlist = array();
     $this->view->assignRef('filterlist', $filterlist);
     $this->view->display();
 }
示例#23
0
 function translationPublishedFilter($contentElement)
 {
     $this->filterNullValue = '';
     $this->filterType = "published";
     $this->filterField = $contentElement->getFilter("published");
     parent::translationFilter($contentElement);
 }