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); } }