BaseEventTypeController::updateEventInfo PHP Method

updateEventInfo() protected method

Generates the info text for controller event from the current elements, sets it on the event and saves it.
protected updateEventInfo ( )
    protected function updateEventInfo()
    {
        $info_text = '';
        foreach ($this->open_elements as $element) {
            if ($element->infotext) {
                $info_text .= $element->infotext;
            }
        }
        $this->event->info = $info_text;
        $this->event->save();
    }

Usage Example

Esempio n. 1
0
 /**
  * Extend the parent method to set event issue data based on user selection.
  */
 protected function updateEventInfo()
 {
     parent::updateEventInfo();
     $this->updateEventIssues();
 }
BaseEventTypeController