getCookie() 공개 정적인 메소드

public static getCookie ( $name )
예제 #1
0
 /**
  * Load default username and password in login form
  *
  * @return Gpf_Rpc_Form
  */
 public function loadNoRpc()
 {
     $form = new Gpf_Rpc_Form(new Gpf_Rpc_Params());
     $form->setField(self::REMEMBER_ME, Gpf::YES);
     if (Gpf_Application::isDemo()) {
         $form->setField(self::USERNAME, Gpf_Session::getInstance()->getModule()->getDemoUsername());
         $form->setField(self::PASSWORD, Gpf_Session::getInstance()->getModule()->getDemoPassword());
     }
     $langage = Gpf_Http::getCookie(self::COOKIE_LANGUAGE);
     $form->setField(self::LANGUAGE, $langage, $this->setDefaultLanguage(Gpf_Lang_Languages::getInstance()->getActiveLanguagesNoRpc())->toObject());
     return $form;
 }