public function getValue($key) { $sql = 'select value from `user_value` where `uid`="' . $this->getUid() . '" and key="' . $key . '"'; $db = XG::getMysql(); $row = $db->getOne($sql); return unserialize($row); }