public function __construct($id = 0, $title = '', $position = anvilTabs::POSITION_DEFAULT, $properties = null) { parent::__construct($id, $title, $properties); $this->class .= ' tabPanel'; $this->tabs = new anvilTabs('', $position); // $this->addControl($this->tabs); }
public function __construct($id = 0, $title = '', $status = self::STATUS_ACTIVE, $properties = null) { $this->status = $status; switch ($status) { case self::STATUS_DISABLED: $title .= ' (disabled)'; break; case self::STATUS_DELETED: $title .= ' (deleted)'; break; } parent::__construct($id, $title, $properties); $this->class = $this->_statusClass[$this->status]; }