示例#1
0
 public function install()
 {
     if (parent::install()) {
         // add properties for password recovery
         $this->extensionPropertySettings->add("Password recovery settings", "HEADLINE_RECOVERY", "HEADLINE");
         $this->extensionPropertySettings->add("Sender E-Mail address", "FROM_EMAIL", "TEXT");
         $this->extensionPropertySettings->add("Sender name", "FROM_NAME", "TEXT");
         $this->extensionPropertySettings->add("E-Mail Subject", "SUBJECT", "TEXT");
         $this->extensionPropertySettings->add("E-Mail content displayed before recovery link", "BODY_PT1", "TEXTAREA");
         $this->extensionPropertySettings->add("E-Mail content displayed after recovery link", "BODY_PT2", "TEXTAREA");
         // add properties for login
         $this->extensionPropertySettings->add("Login settings", "HEADLINE_LOGIN", "HEADLINE");
         $this->extensionPropertySettings->add("Login Page", "STANDARD_LOGIN", "PAGE");
         $this->extensionPropertySettings->add("Fallback target Page after successful login", "STANDARD_REFERRER", "PAGE");
         // add properties for logout
         $this->extensionPropertySettings->add("Logout settings", "HEADLINE_LOGOUT", "HEADLINE");
         $this->extensionPropertySettings->add("Page which will be loaded after logout", "STANDARD_LOGOUT_REFERRER", "PAGE");
         $this->extensionPropertySettings->add("Logout action", "LOGOUT_ACTION", "TEXT");
         // set standardvalues for password recovery
         $this->extensionProperties->setValue('FROM_EMAIL', '*****@*****.**');
         $this->extensionProperties->setValue('FROM_NAME', 'Password service');
         $this->extensionProperties->setValue('SUBJECT', 'Your password');
         $this->extensionProperties->setValue('BODY_PT1', 'Dear user,\\n\\nplease click following link in order to reset your password:\\n');
         $this->extensionProperties->setValue('BODY_PT2', '\\n\\nBest,\\nXXX');
         $this->extensionProperties->setValue('LOGOUT_ACTION', 'logout');
         return parent::setInstalled();
     } else {
         return false;
     }
 }
示例#2
0
 public function install()
 {
     if (parent::install()) {
         return parent::setInstalled();
     } else {
         return false;
     }
 }