/** * Loads the data * * @param bool $translationMode Translation mode of the record, * default FALSE to use the default way of translation * * @return void */ public function loadData($translationMode = FALSE) { if ($this->data_loaded == FALSE) { parent::loadData($translationMode); $this->images_array = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->images, TRUE); $this->teaserImagesArray = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->teaserimages, TRUE); $this->categories_uid = array_unique($this->databaseConnection->getChildCategories($this->uid, $this->lang_uid)); $this->parent_category_uid = $this->databaseConnection->getParentCategory($this->uid); $this->products_uid = array_unique($this->databaseConnection->getChildProducts($this->uid, $this->lang_uid)); $this->data_loaded = TRUE; } }
/** * Loads the data and divides comma separated images in array * * @param bool $translationMode Translation mode * * @return void */ public function loadData($translationMode = FALSE) { parent::loadData($translationMode); $this->loadPrices($translationMode); $this->images_array = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->images); $this->calculateDeliveryCosts(); }
/** * Load data and divide comma sparated images in array * inherited from parent * * @param mixed $translationMode Translation mode of the record, * default FALSE to use the default way of translation * * @return Tx_Commerce_Domain_Model_Product */ public function loadData($translationMode = FALSE) { $return = parent::loadData($translationMode); $this->images_array = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->images); $this->teaserImagesArray = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->teaserimages); return $return; }