Пример #1
0
 /**
  * @param mixed $value
  * @return bool|void
  */
 public function isValid($value)
 {
     $this->errors = array();
     $email = $this->teilnehmerRepository->findByEmail(trim(strtolower($value)));
     // \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump( $value , 'Email Validator');
     if ($email) {
         $this->addError('Die E-Mail-Adresse <b>' . $email . '</b> ist bereits registriert.', 1806198601, array(htmlspecialchars($value)));
         return false;
     }
     return true;
 }
 /**
  * action delete
  *
  * @param WOEHRL\WoehrlKassenbongewinnspiel\Domain\Model\Teilnehmer
  * @return void
  */
 public function deleteAction(\WOEHRL\WoehrlKassenbongewinnspiel\Domain\Model\Teilnehmer $teilnehmer)
 {
     $this->addFlashMessage('The object was deleted. Please be aware that this action is publicly accessible unless you implement an access check. See <a href="http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#1._Model_the_domain" target="_blank">Wiki</a>', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
     $this->teilnehmerRepository->remove($teilnehmer);
     $this->redirect('list');
 }