/** * retrieve data from the object * @see lib/File#__get($property) */ function __get($property) { if (in_array($property, array('files', 'folders'))) { $this->loadStructure(); return $this->{$property}; } else { return parent::__get($property); } }