protected function _formSpecialTreatments($isInside = false) { $specialTreatments = $isInside ? $this->_map['specialInsideTreatments'] : $this->_map['specialTreatments']; foreach ($specialTreatments as $propName => $treatmentClassName) { if ($this->_container->IsValueSet($propName) && class_exists($treatmentClassName)) { $elements = $this->_container->GetValue($propName); $treatment = new $treatmentClassName(); foreach ($elements as $container) { $treatment->SetContainer($container); if ($treatment->Form()) { $this->_value .= $treatment->GetValue(); } } } } }
/** * Update calendar by calendarId, if calendarId is null then call CreateCalendar * introduce of event will be add later * * @param CalendarContainer $calendarContainer * @return bool */ protected function _UpdateCalendarInfo($calendarContainer) { if (!$calendarContainer->isValueSet('calendarId')) { return $this->CreateCalendar($calendarContainer); } $isCalendarUpdatable = $this->_currentModel->IsCalendarUpdatable($this->_userId, $calendarContainer); $result = $this->_currentModel->UpdateCalendarInfo($calendarContainer); return $result; }