3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class generates form components for Conference Slots.
21 class CRM_Event_Form_ManageEvent_Conference
extends CRM_Event_Form_ManageEvent
{
32 public function buildQuickForm() {
33 $slots = CRM_Core_OptionGroup
::values('conference_slot');
37 ts('Conference Slot'),
39 '' => ts('- select -'),
44 $this->addEntityRef('parent_event_id', ts('Parent Event'), [
46 'placeholder' => ts('- any -'),
47 'select' => ['minimumInputLength' => 0],
50 parent
::buildQuickForm();
56 public function postProcess() {
57 $params = $this->exportValues();
59 $params['id'] = $this->_id
;
60 CRM_Event_BAO_Event
::add($params);
62 parent
::endPostProcess();
66 * Return a descriptive name for the page, used in wizard header.
70 public function getTitle() {
71 return ts('Conference Slots');