/** * 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 \CommerceTeam\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; }
/** * 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 = GeneralUtility::trimExplode(',', $this->images, true); $this->teaserImagesArray = 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 = GeneralUtility::trimExplode(',', $this->images); $this->calculateDeliveryCosts(); }