Пример #1
0
 /**
  * Standard constructor
  *
  * @param  String ruleId
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _('Sie befinden sich nicht innerhalb des Anmeldezeitraums.');
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('timedadmissions');
     }
 }
Пример #2
0
 /**
  * Standard constructor.
  *
  * @param  String ruleId
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _('Die Anmeldung ist gesperrt.');
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('lockedadmissions');
     }
 }
Пример #3
0
 /**
  * Standard constructor.
  *
  * @param  String ruleId
  * @return LimitedAdmission
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _('Sie haben sich bereits zur maximalen Anzahl von %s Veranstaltungen angemeldet.');
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('limitedadmissions');
     }
 }
 /**
  * Standard constructor
  *
  * @param  String ruleId
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->first_come_first_served_allowed = (bool) Config::get()->ENABLE_COURSESET_FCFS;
     $this->default_message = _('Es stehen keine weiteren Plätze zur Verfügung.');
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('participantrestrictedadmissions');
     }
 }
Пример #5
0
 /**
  * Standard constructor.
  *
  * @param  String ruleId If this rule has been saved previously, it
  *      will be loaded from database.
  * @return AdmissionRule the current object (this).
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _("Sie erfüllen nicht die Bedingung: %s");
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('conditionaladmissions');
     }
     return $this;
 }
Пример #6
0
 /**
  * Standard constructor
  *
  * @param  String ruleId
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _('Sie sind nicht als Teilnehmer der Veranstaltung: %s eingetragen.');
     $this->default_message1 = _('Sie dürfen nicht als Teilnehmer der Veranstaltung: %s eingetragen sein.');
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('coursememberadmissions');
     }
 }
Пример #7
0
 /**
  * Standard constructor.
  *
  * @param  String ruleId
  */
 public function __construct($ruleId = '', $courseSetId = '')
 {
     parent::__construct($ruleId, $courseSetId);
     $this->default_message = _('Das eingegebene Passwort ist falsch.');
     // Create a new bcrypt password hasher (exclude weaker algorithms).
     $this->hasher = new PasswordHash(8, false);
     if ($ruleId) {
         $this->load();
     } else {
         $this->id = $this->generateId('passwordadmissions');
     }
 }