示例#1
0
 public function check() {
     if (Gpf_Application::isDemo() && Gpf_Application::isDemoEntryId($this->getId())) {
         if ($this->getUserName() != Pap_Branding::DEMO_AFFILIATE_USERNAME ||
         $this->getPassword() != Pap_Branding::DEMO_PASSWORD ||
         $this->getStatus() != "A") {
             throw new Gpf_Exception("Demo affiliate username, password and status can not be modified");
         }
     }
     return parent::check();
 }