public function __get($name) { switch ($name) { case 'size': return $this->get($name, '0') / 1024 / 1024; case 'base': if ($this->has('base')) { return Repository::findHdd($this->get('base')); } return FALSE; case 'parent': if ($this->has('parent')) { return Repository::findHdd($this->get('parent')); } return FALSE; } return parent::__get($name); }
public function __construct($values = array()) { parent::__construct($values); }