public function save()
 {
     try {
         $attribute = new Gpf_Db_UserAttribute();
         $attribute->getSetting($this->getName(), $this->getAccountUserId());
         $this->setPrimaryKeyValue($attribute->getPrimaryKeyValue());
         $this->update();
     } catch (Gpf_DbEngine_NoRowException $e) {
         $this->insert();
     }
 }
 protected function getInstanceSetting($name, $accounUsertId = null)
 {
     $attribute = new Gpf_Db_UserAttribute();
     return $attribute->getSetting($name, $accounUsertId);
 }
 private function getUserAttribute($attribute, Gpf_Db_User $user)
 {
     $setting = new Gpf_Db_UserAttribute();
     try {
         return $setting->getSetting($attribute, $user->getId());
     } catch (Gpf_Exception $e) {
     }
     return $attribute == Gpf_Auth_Service::TIME_OFFSET ? 0 : '';
 }