/** * updateSpecialFieldValues * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function updateSpecialFieldValues() { try { if (count($this->setup->SpecialFields()) > 0) { foreach ($this->setup->SpecialFields() as $objField) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$objField->name])->getElement($objField->name)->setValue($objField->getValue()); if (count($objField->getProperties()) > 0) { foreach ($objField->getProperties() as $strProperty => $mixedPropertyValue) { if (in_array($strProperty, self::$FIELD_PROPERTIES_TO_IMPART)) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$objField->name])->getElement($objField->name)->{$strProperty} = $mixedPropertyValue; } } } } } } catch (Exception $exc) { $this->core->logger->err($exc); } }
/** * updateSpecificFieldValues * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function updateSpecificFieldValues() { try { if (count($this->setup->SpecialFields()) > 0) { foreach ($this->setup->SpecialFields() as $objField) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$objField->name])->getElement($objField->name)->setValue($objField->getValue()); if (count($objField->getProperties()) > 0) { foreach ($objField->getProperties() as $strProperty => $mixedPropertyValue) { if (in_array($strProperty, self::$FIELD_PROPERTIES_TO_IMPART)) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$objField->name])->getElement($objField->name)->{$strProperty} = $mixedPropertyValue; } } } } } if (count($this->setup->FileFilterFields()) > 0) { foreach ($this->setup->FileFilterFields() as $objField) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$objField->name])->getElement($objField->name)->setValue($objField->getValue()); } } if (count($this->setup->MultiplyRegionIds()) > 0) { foreach ($this->setup->MultiplyRegionIds() as $intRegionId) { $objRegion = $this->setup->getRegion($intRegionId); if (count($objRegion->FileFilterFieldNames()) > 0) { foreach ($objRegion->FileFilterFieldNames() as $strFildeName) { foreach ($objRegion->RegionInstanceIds() as $intRegionInstanceId) { $this->getSubForm(self::SUB_FROM_ID_PREFIX . $this->arrFieldSubForm[$strFildeName])->getElement($strFildeName . '_' . $intRegionInstanceId)->setValue($objRegion->getField($strFildeName)->getInstanceValue($intRegionInstanceId)); } } } } } } catch (Exception $exc) { $this->core->logger->err($exc); } }