public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { parent::__construct($id_product, $full, $id_lang, $id_shop, $context); if (self::$amend) { $this->amend($full && $this->id); } }
public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { parent::__construct($id_product, $full, $id_lang, $id_shop, $context); require_once _PS_MODULE_DIR_ . "ag_viewhelper/ag_viewhelper.php"; $this->description = ag_viewhelper::getHtmlCode($this->description); $this->description_short = ag_viewhelper::getHtmlCode($this->description_short); }
public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { /* * EU-Legal * add standard shipping time */ self::$definition['fields']['delivery_now'] = array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255); self::$definition['fields']['delivery_later'] = array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'IsGenericName', 'size' => 255); parent::__construct($id_product, $full, $id_lang, $id_shop, $context); if (!$context) { $context = Context::getContext(); } $id_lang = empty($id_lang) ? $context->language->id : $id_lang; if ($this->id) { $this->delivery_now = !empty($this->delivery_now) ? $this->delivery_now : Configuration::get('LEGAL_DELIVERY_NOW', (int) $id_lang); $this->delivery_later = !empty($this->delivery_later) ? $this->delivery_later : Configuration::get('LEGAL_DELIVERY_LATER', (int) $id_lang); } }
public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { parent::__construct($id_product, $id_lang, $id_shop); self::$definition['fields'] = array('auteur' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 255), 'date_de_parution' => array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'), 'dimension' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 50), 'editeur' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 255), 'page' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId')); }