<?php

class Tab extends View {



	public $action = '';

	protected $package = 'core-containers';
	protected $selected;
	protected $idRequired = true;



	public function __construct($id) {
		parent::__construct($id);
		if ($id) {
			$this->selected = &$_SESSION[$id]['selected'];
		}
	}



	public function select() {
		$this->selected = true;
	}



	public function unselect() {
		$this->selected = false;
	}



	public function isSelected() {
		return $this->selected;
	}



	public function getView() {
		return ActionService::execAction($this->action);
	}



} // class Tab

?>