<?php

class More extends View {



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



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



	public function expand() {
		$this->expanded = true;
	}



	public function colapse() {
		$this->expanded = false;
	}



	public function isExpanded() {
		return $this->expanded;
	}



	public function __toString() {
        $this->addListener(new ToggleListener(
			new Action("view/{$this->package}/MoreCtrl/toggle", "'{$this->id}'")
		));
		return parent::__toString();
	}



} // class More

?>