예제 #1
0
 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);
 }
예제 #2
0
 public function __construct($values = array())
 {
     parent::__construct($values);
 }