/**
  * @return array
  */
 private function getAttributes()
 {
     $attributes = Gpf_Db_UserAttribute::getSettingsForGroupOfUsers(array(self::SHOW_QUICK_LAUNCH), array($this->getAccountUserId()));
     if (isset($attributes[$this->getAccountUserId()])) {
         return $attributes[$this->getAccountUserId()];
     }
     throw new Gpf_Exception($this->_('Settings not exists, load default settings.'));
 }
 /**
  * Load Wallpaper settings to form
  */
 public function loadNoRpc()
 {
     $form = new Gpf_Rpc_Form();
     $form->addField(self::WALLPAPER, '');
     $form->addField(self::WALLPAPER_POSITION, 'S');
     $form->addField(self::WALLPAPER_TYPE, 'N');
     $form->addField(self::BACKGROUND_COLOR, '#000000');
     try {
         $attributes = Gpf_Db_UserAttribute::getSettingsForGroupOfUsers(array(self::WALLPAPER, self::WALLPAPER_TYPE, self::WALLPAPER_POSITION, self::BACKGROUND_COLOR), array(Gpf_Session::getInstance()->getAuthUser()->getAccountUserId()));
         if (isset($attributes[Gpf_Session::getInstance()->getAuthUser()->getAccountUserId()])) {
             $attributes = $attributes[Gpf_Session::getInstance()->getAuthUser()->getAccountUserId()];
             if (isset($attributes[self::WALLPAPER])) {
                 $form->setField(self::WALLPAPER, $attributes[self::WALLPAPER]);
             }
             if (isset($attributes[self::WALLPAPER_TYPE])) {
                 $form->setField(self::WALLPAPER_TYPE, $attributes[self::WALLPAPER_TYPE]);
             }
             if (isset($attributes[self::WALLPAPER_POSITION])) {
                 $form->setField(self::WALLPAPER_POSITION, $attributes[self::WALLPAPER_POSITION]);
             }
             if (isset($attributes[self::BACKGROUND_COLOR])) {
                 $form->setField(self::BACKGROUND_COLOR, $attributes[self::BACKGROUND_COLOR]);
             }
         }
     } catch (Gpf_Exception $e) {
         $form->setErrorMessage($e->getMessage() . ' ' . $e->getLine());
     }
     return $form;
 }