コード例 #1
0
ファイル: EventEditor.php プロジェクト: kurtkk/seminars
 /**
  * The constructor.
  *
  * After the constructor has been called, hasAccessMessage() must be called
  * to ensure that the logged-in user is allowed to edit a given seminar.
  *
  * @param array $configuration TypoScript configuration for the plugin
  * @param tslib_cObj $cObj the parent cObj content, needed for the flexforms
  */
 public function __construct(array $configuration, tslib_cObj $cObj)
 {
     parent::__construct($configuration, $cObj);
     $this->setRequiredFormFields();
 }
コード例 #2
0
 /**
  * The constructor.
  *
  * This class may only be instantiated after is has already been made sure
  * that the logged-in user is allowed to register for the corresponding
  * event (or edit a registration).
  *
  * Please note that it is necessary to call setAction() and setSeminar()
  * directly after instantiation.
  *
  * @param array $configuration TypoScript configuration for the plugin
  * @param tslib_cObj $cObj the parent cObj content, needed for the flexforms
  */
 public function __construct(array $configuration, tslib_cObj $cObj)
 {
     parent::__construct($configuration, $cObj);
     $formFieldsToShow = t3lib_div::trimExplode(',', $this->getConfValueString('showRegistrationFields', 's_template_special'), TRUE);
     foreach ($formFieldsToShow as $currentFormField) {
         $this->formFieldsToShow[$currentFormField] = $currentFormField;
     }
 }