);
}
+ public function getProfile()
+ {
+ $group = $this->getGroup();
+ if (!$group instanceof User_group) {
+ return null; // TODO: Throw exception when other code is ready
+ }
+ return $group->getProfile();
+ }
+
+ public function getGroup()
+ {
+ return User_group::getKV('id', $this->group_id);
+ }
+
function setNickname($nickname)
{
$this->decache();