name = $name; $this->class = $class; $this->label = $label; $this->adapterName = $adapterName; $this->filter = $filter; $this->orderBy = $orderBy; $this->isActive = $isActive; $this->options = $options; } public function getHTML() { $active = ($this->isActive)?"active":""; if (!$this->isInsideGroup) { return '
  • ' . t($this->label) . '
  • '; } else { return '
  • ' . t($this->label) . '
  • '; } } public function getPageHTML() { $active = ($this->isActive)?" active":""; $html = '
    '. '
    '. ''. '
    '; return $html; } public function getJSObjectCode() { $js = ''; if (empty($this->filter)) { $js.= "modJsList['tab" . $this->name . "'] = new " . $this->adapterName . "('" . $this->class . "','" . $this->name . "','','".$this->orderBy."');"; } else { $js.= "modJsList['tab" . $this->name . "'] = new " . $this->adapterName . "('" . $this->class . "','" . $this->name . "'," . $this->filter . ",'".$this->orderBy."');"; } foreach ($this->options as $key => $val) { $js.= "modJsList['tab" . $this->name . "'].".$key."(".$val.");"; } return $js; } }