コード例 #1
0
ファイル: Product.php プロジェクト: BenjaminBeck/commerce
 /**
  * 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;
 }
コード例 #2
0
ファイル: Category.php プロジェクト: BenjaminBeck/commerce
 /**
  * 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;
     }
 }
コード例 #3
0
ファイル: Article.php プロジェクト: BenjaminBeck/commerce
 /**
  * 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();
 }