コード例 #1
0
ファイル: Editor.php プロジェクト: jinshana/tangocms
 /**
  * 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);
     }
 }
コード例 #2
0
ファイル: File.php プロジェクト: jinshana/tangocms
 /**
  * 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);
 }
コード例 #3
0
ファイル: Url.php プロジェクト: jinshana/tangocms
 /**
  * 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);
 }
コード例 #4
0
ファイル: Base.php プロジェクト: jinshana/tangocms
 /**
  * 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);
 }
コード例 #5
0
ファイル: Module.php プロジェクト: jinshana/tangocms
 /**
  * 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);
 }