예제 #1
0
파일: User.php 프로젝트: markwu/simpleid
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'uid':
             return $this->uid;
             break;
         case 'identity':
             // Retained for compatibility purposes
             $mod = UserModule::instance();
             return $this->hasLocalOpenIDIdentity() ? $this->getLocalOpenIDIdentity() : $mod->getCanonicalURL('user/' . rawurlencode($this['uid']));
             break;
         default:
             return parent::offsetGet($offset);
     }
 }