/** * Allow access to some protected/private properties * for easier interface * * @param string $name * @return mixed */ public function __get($name) { switch ($name) { case 'formatting': return $this->formatting; default: return parent::__get($name); } }
/** * Quick access to details of the first file, such as file size * mime type, path etc. * * @param string $name * @return mixed */ public function __get($name) { if ($name == 'type' || $name == 'mime_type') { $name = 'mime'; } else { if ($name == 'tmpName') { $name = 'tmp_name'; } } return isset($this->fileDetails[0][$name]) ? $this->fileDetails[0][$name] : parent::__get($name); }
/** * Allows quick acccess to the parsed request path details * * @param string $name * @return mixed */ public function __get($name) { return isset($this->parsed[$name]) ? $this->parsed[$name] : parent::__get($name); }
/** * Provides easy access to details of the image * * @param string $name * @return mixed */ public function __get($name) { return isset($this->details[$name]) ? $this->details[$name] : parent::__get($name); }
/** * Allows for quick access to module details as properties * * @param string $var * @return mixed */ public function __get($var) { return isset($this->details[$var]) ? $this->details[$var] : parent::__get($var); }