public function __get($name) { switch ($name) { case 'formatOutput': return $this->_document->{$name}; } return NULL; }