AAAAhome/academiac/www/administrator/components/com_unitehcarousel/unitejoomla/admintable.class.php000060400000005720151453023300027403 0ustar00state = $state; $this->self = $_SERVER["PHP_SELF"]; } /** * * add column type and name */ private function addCol($type=null,$name=null,$title=null,$sort_value = null){ $col = array(); $col["type"] = $type; $col["name"] = $name; $col["title"] = $title; $col["sort_value"] = $sort_value; $this->arrCols[] = $col; } /** * * add "regular" text column */ public function addCol_text($name,$title,$sort_value=null){ $this->addCol(self::COL_TYPE_TEXT,$name,$title,$sort_value); } /** * * add checkboxes column */ public function addCol_checkbox(){ $this->addCol(self::COL_TYPE_CHECKBOX); } /** * * add some filter */ public function addFilter($type){ $filter = array(); $filter["type"] = $type; $this->arrFilters[] = $filter; } /** * * add "published" filter */ public function addFilterPublished(){ $this->addFilter(self::FILTER_TYPE_PUBLISHED); } /** * =========================================================== */ /** * * draw some filter */ private function putFilter($filter){ $type = $filter["type"]; switch($filter["type"]){ case self::FILTER_TYPE_PUBLISHED: ?> arrFilters)) return(false); ?>
arrFilters as $filter) $this->putFilter($filter); ?>