/** * Retourne les éléments du produits formatés pour affichage * * @param string $format * @return array */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $ret['payment_image_url'] = $this->getPictureUrl(); return $ret; }
public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $oledrion_Currency = oledrion_Currency::getInstance(); $ret['vat_rate_formated'] = $oledrion_Currency->amountInCurrency(floatval($this->getVar('vat_rate', 'e'))); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format * @return array */ public function toArray($format = 's') { global $h_oledrion_location_delivery; $ret = array(); $ret = parent::toArray($format); $ret['delivery_image_url'] = $this->getPictureUrl(); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format Le format à utiliser * @return array Les informations formatées */ function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $oledrion_Currency = oledrion_Currency::getInstance(); $ret['caddy_price_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('caddy_price')); $ret['caddy_shipping_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('caddy_shipping')); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format * @return array */ public function toArray($format = 's') { $oledrion_Currency = oledrion_Currency::getInstance(); $ret = array(); $ret = parent::toArray($format); $ret['packing_price_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('packing_price')); $ret['packing_image_url'] = $this->getPictureUrl(); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format Le format à utiliser * @return array Les informations formatées */ function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; $countries = array(); $countries = XoopsLists::getCountryList(); $oledrion_Currency = oledrion_Currency::getInstance(); $ret['cmd_total_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('cmd_total')); // Montant TTC de la commande $ret['cmd_shipping_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('cmd_shipping')); // Montant TTC des frais de port $ret['cmd_text_fordisplay'] = nl2br($this->getVar('cmd_text')); // Liste des réductions accordées if (isset($countries[$this->getVar('cmd_country')])) { // Libellé du pays de l'acheteur $ret['cmd_country_label'] = $countries[$this->getVar('cmd_country')]; } return $ret; }
/** * Retourne les éléments du fabricant formatés pour affichage * * @param string $format Le format à utiliser * @return array Les informations formatées */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); for ($i = 1; $i <= 5; $i++) { $ret['manu_photo' . $i . '_url'] = $this->getPictureUrl($i); } $ret['manu_url_rewrited'] = $this->getLink(); $ret['manu_href_title'] = $this->getHrefTitle(); $ret['manu_initial'] = $this->getInitial(); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format * @return array */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format Le format à utiliser * @return array Les informations formatées */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; $countries = array(); $countries = XoopsLists::getCountryList(); $oledrion_Currency = oledrion_Currency::getInstance(); $ret['cmd_total_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('cmd_total')); // Montant TTC de la commande $ret['cmd_shipping_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('cmd_shipping')); // Montant TTC des frais de port $ret['cmd_packing_price_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('cmd_packing_price')); $ret['cmd_text_fordisplay'] = nl2br($this->getVar('cmd_text')); // Liste des réductions accordées if (isset($countries[$this->getVar('cmd_country')])) { // Libellé du pays de l'acheteur $ret['cmd_country_label'] = $countries[$this->getVar('cmd_country')]; } if ($this->getVar('cmd_uid') > 0) { $ret['cmd_uname'] = XoopsUser::getUnameFromId($this->getVar('cmd_uid')); } $ret['cmd_create_date'] = formatTimestamp($this->getVar('cmd_create'), _MEDIUMDATESTRING); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format * @return array */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $ret['cat_full_imgurl'] = $this->getPictureUrl(); $ret['cat_href_title'] = $this->getHrefTitle(); $ret['cat_url_rewrited'] = $this->getLink(); return $ret; }
public function toArray($format = 's') { $ret = parent::toArray($format); $ret['file_is_mp3'] = $this->isMP3(); $ret['file_download_url'] = $this->getURL(); return $ret; }
/** * Retourne les éléments du produits formatés pour affichage * * @param string $format Le format à utiliser * @return array Les informations formatées */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $oledrion_Currency = oledrion_Currency::getInstance(); $ttc = $finalPriceTTC = $this->getTTC(); $finalPriceHT = floatval($this->getVar('product_price')); $ret['product_ecotaxe_formated'] = $oledrion_Currency->amountForDisplay($this->getVar('product_ecotaxe')); $ret['product_price_formated'] = $oledrion_Currency->amountForDisplay($this->getVar('product_price', 'e')); $ret['product_shipping_price_formated'] = $oledrion_Currency->amountForDisplay($this->getVar('product_shipping_price', 'e')); $ret['product_discount_price_formated'] = $oledrion_Currency->amountForDisplay($this->getVar('product_discount_price', 'e')); $ret['product_price_ttc'] = $oledrion_Currency->amountForDisplay($ttc); $ret['product_price_ttc_long'] = $oledrion_Currency->amountForDisplay($ttc, 'l'); if (intval($this->getVar('product_discount_price')) > 0) { //geeker $finalPriceTTC = $this->getDiscountTTC(); $finalPriceHT = floatval($this->getVar('product_discount_price', 'e')); $ret['product_discount_price_ttc'] = $oledrion_Currency->amountForDisplay($this->getDiscountTTC()); $ret['product_discount_price_ttc_long'] = $oledrion_Currency->amountForDisplay($this->getDiscountTTC(), 'l'); } else { $ret['product_discount_price_ttc'] = ''; $ret['product_discount_price_ttc_long'] = ''; } // Les informations sur les attributs $attributesCount = $this->productAttributesCount(); $ret['product_attributes_count'] = $attributesCount; if ($attributesCount > 0) { $optionsPrice = $this->getInitialOptionsPrice(); $ret['product_price_formated'] = $oledrion_Currency->amountForDisplay(floatval($this->getVar('product_price', 'e')) + $optionsPrice); $ret['product_discount_price_formated'] = $oledrion_Currency->amountForDisplay(floatval($this->getVar('product_discount_price', 'e')) + $optionsPrice); $ret['product_price_ttc'] = $oledrion_Currency->amountForDisplay($ttc + $optionsPrice); $ret['product_price_ttc_long'] = $oledrion_Currency->amountForDisplay($ttc + $optionsPrice, 'l'); if (intval($this->getVar('product_discount_price')) != 0) { $finalPriceTTC = $this->getDiscountTTC() + $optionsPrice; $finalPriceHT = floatval($this->getVar('product_discount_price', 'e')) + $optionsPrice; $ret['product_discount_price_ttc'] = $oledrion_Currency->amountForDisplay(floatval($this->getDiscountTTC()) + $optionsPrice); $ret['product_discount_price_ttc_long'] = $oledrion_Currency->amountForDisplay(floatval($this->getDiscountTTC()) + $optionsPrice, 'l'); } } $ret['product_final_price_ht_formated_long'] = $oledrion_Currency->amountForDisplay($finalPriceHT, 'l'); $ret['product_final_price_ttc'] = $finalPriceTTC; $ret['product_final_price_ttc_javascript'] = oledrion_utils::formatFloatForDB($finalPriceTTC); $ret['product_final_price_ttc_formated'] = $oledrion_Currency->amountForDisplay($finalPriceTTC); $ret['product_final_price_ttc_formated_long'] = $oledrion_Currency->amountForDisplay($finalPriceTTC, 'l'); $ret['product_vat_amount_formated_long'] = $oledrion_Currency->amountForDisplay($finalPriceHT - $finalPriceTTC); $ret['product_tooltip'] = oledrion_utils::makeInfotips($this->getVar('product_description')); $ret['product_url_rewrited'] = $this->getLink(); $ret['product_href_title'] = oledrion_utils::makeHrefTitle($this->getVar('product_title')); $ret['product_recommended'] = $this->isRecommended(); $ret['product_recommended_picture'] = $this->recommendedPicture(); $ret['product_image_full_url'] = $this->getPictureUrl(); $ret['product_thumb_full_url'] = $this->getThumbUrl(); $ret['product_image_full_path'] = $this->getPicturePath(); $ret['product_thumb_full_path'] = $this->getThumbPath(); $ret['product_shorten_summary'] = oledrion_utils::truncate_tagsafe($this->getVar('product_summary'), OLEDRION_SUMMARY_MAXLENGTH); $ret['product_shorten_description'] = oledrion_utils::truncate_tagsafe($this->getVar('product_description'), OLEDRION_SUMMARY_MAXLENGTH); $ret['product_new'] = $this->isNewProduct(); return $ret; }
/** * Retourne les éléments formatés pour affichage (en général) * * @param string $format * @return array */ public function toArray($format = 's') { $ret = array(); $ret = parent::toArray($format); $ret['list_type_description'] = $this->getListTypeDescription(); $ret['list_href_title'] = $this->getHrefTitle(); $ret['list_url_rewrited'] = $this->getLink(); $ret['list_formated_date'] = $this->getFormatedDate(); $ret['list_username'] = $this->getListAuthorName(); $ret['list_formated_count'] = sprintf(_OLEDRION_PRODUCTS_COUNT, $this->getVar('list_productscount')); return $ret; }