コード例 #1
0
ファイル: user_lister.php プロジェクト: 72squared/glu-php
 public function __get($k)
 {
     $v = parent::__get($k);
     if ($v instanceof User) {
         return $v;
     }
     return $this->anonymous();
 }
コード例 #2
0
ファイル: scratchpad.php プロジェクト: 72squared/glu-php
 public function __get($k)
 {
     return $k == 'title' ? self::pathToName($this->path) : parent::__get($k);
 }