public function __construct($id = NULL, $id_lang = NULL, $liteResult = true, $hideScenePosition = false) { parent::__construct(intval($id), intval($id_lang)); if (!$liteResult) { $this->products = $this->getProducts(true, intval($id_lang), false); } if ($hideScenePosition) { $this->name = Scene::hideScenePosition($this->name); } }
public function __construct($id = null, $id_lang = null, $lite_result = true, $hide_scene_position = false) { parent::__construct($id, $id_lang); if (!$lite_result) { $this->products = $this->getProducts(true, (int) $id_lang, false); } if ($hide_scene_position) { $this->name = Scene::hideScenePosition($this->name); } $this->image_dir = _PS_SCENE_IMG_DIR_; }