Exemple #1
0
 /**
  * Checks if object is in a valid state
  * @access private
  */
 function check()
 {
     parent::check();
     if (empty($this->title)) {
         $this->throwError(1, _("Der Titel darf nicht leer sein."));
     }
     if ($this->isTemplate() && $this->hasVoted()) {
         $this->throwError(2, _("Ungültiges Objekt: Bei einer Vorlage wurde abgestimmt."));
     }
     if (!$this->isTemplate() && $this->isShared()) {
         $this->throwError(3, _("Ungültiges Objekt: Eine aktive Evaluation wurde freigegeben."));
     }
 }
 /**
  * Checks if object is in a valid state
  * @access private
  */
 function check()
 {
     parent::check();
     #    if (!empty ($this->users) && !empty ($this->counter))
     #$this->throwError (1, _("Zähler hat einen ungültigen Wert"));
 }