public function __construct($import_price) { //call constructor of parent to init value parent::__construct(); $this->import_price = $import_price; $this->object_type = "ImportProduct"; }
/** * public __construct * * @description initialise our checkout */ public function __construct(&$product) { // If we are being created then there is only 1 of us parent::__construct($product->getCode(), $product->getName(), $product->getPrice()); $this->quantity = 1; $this->totalPrice = parent::getPrice(); }
public function __construct($title, $pageCount) { parent::__construct(); $this->_title = $title; $this->_pageCount = $pageCount; $this->_type = 'book'; }
public function __construct($title, $duration) { parent::__construct(); $this->_type = 'DVD'; $this->_duration = $duration; $this->_title = $title; }
public function __construct($number = 0) { //call constructor of parent to init value parent::__construct(); $this->number = $number; $this->object_type = "SoldProduct"; }
/** * Contructor * * @param void * @return void */ public function __construct($pId = false) { parent::__construct($pId); if (!$pId) { // Create SKU automatically $this->setSku(new Sku()); } }
public function __construct() { parent::__construct(); $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN person_role = 'musician' THEN person_name END ORDER BY madeby_id", 'musicians']; $this->sqlOptions['concat'][] = ['song_title ORDER BY song_number', 'songs']; $this->sqlOptions['concat'][] = ['running_time ORDER BY song_number', 'running_times']; $this->sqlOptions['join']['song_base_product'] = ['fk_song_base_product_base_product', 'base_product_id']; $this->sqlOptions['join']['song'] = ['song_id', 'fk_song_base_product_song']; }
public function __construct() { $this->properties['console'] = ''; $this->validates('console', 'presence'); $this->properties['book_type'] = ''; $this->validates('book_type', 'presence'); parent::__construct(); $this->sqlOptions['join']['video_game'] = ['fk_video_game_product_version', 'product_version_id']; $this->sqlOptions['join']['pc_game'] = ['fk_pc_game_video_game', 'video_game_id']; $this->sqlOptions['join']['subtitles'] = ['fk_subtitles_base_product', 'base_product_id']; $this->sqlOptions['join']['languages_base_product'] = ['fk_languages_base_product_base_product', 'base_product_id']; $this->sqlOptions['join']['languages'] = ['language_id', 'fk_subtitles_languages OR fk_languages_base_product_languages']; }
public function __construct() { $this->properties['running_time'] = ''; $this->validates('running_time', 'presence'); $this->properties['age_rating'] = ''; $this->validates('age_rating', 'presence'); $this->properties['creators']['director'] = []; parent::__construct(); $this->sqlOptions['join']['film'] = ['fk_film_base_product', 'base_product_id']; $this->sqlOptions['join']['languages_base_product'] = ['fk_languages_base_product_base_product', 'base_product_id']; $this->sqlOptions['join']['subtitles'] = ['fk_subtitles_base_product', 'base_product_id']; $this->sqlOptions['join']['languages'] = ['language_id', 'fk_languages_base_product_languages']; $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN person_role = 'director' " . "THEN person.person_name ELSE NULL END", 'directors']; $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN person_role = 'actor' " . "THEN person.person_name ELSE NULL END", 'actors']; $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN fk_languages_base_product_languages = language_id " . "THEN language_name END ORDER BY languages_base_product_id", 'languages']; $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN fk_subtitles_languages = language_id " . "THEN language_name END ORDER BY languages_base_product_id", 'subtitles']; }
public function __construct() { $this->properties['page_count'] = ''; $this->validates('page_count', 'presence'); $this->properties['book_type'] = ''; $this->validates('book_type', 'presence'); $this->properties['publisher'] = ''; $this->validates('publisher', 'presence'); $this->properties['language'] = ''; $this->validates('language', 'presence'); $this->properties['creators']['author'] = []; parent::__construct(); $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN person_role = 'author' THEN person.person_name ELSE NULL END", 'authors']; $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN fk_languages_base_product_languages = language_id " . "THEN language_name END ORDER BY languages_base_product_id", 'languages']; $this->sqlOptions['join']['physical_book'] = ['fk_physical_book_product_version', 'product_version_id']; $this->sqlOptions['join']['ebook'] = ['fk_ebook_product_version', 'product_version_id']; $this->sqlOptions['join']['languages_base_product'] = ['fk_languages_base_product_base_product', 'base_product_id']; $this->sqlOptions['join']['languages'] = ['language_id', 'fk_languages_base_product_languages']; }
public function __construct() { parent::__construct(); $this->sqlOptions['concat'][] = ["DISTINCT CASE WHEN person_role = 'actor' " . "THEN person_name END ORDER BY madeby_id", 'actors']; $this->sqlOptions['concat'][] = ['DISTINCT CASE WHEN fk_subtitles_languages = language_id ' . 'THEN language_name END ORDER BY subtitles_id', 'subtitles']; $this->sqlOptions['concat'][] = ['DISTINCT CASE WHEN fk_languages_base_product_languages = language_id ' . 'THEN language_name END ORDER BY languages_base_product_id', 'languages']; $this->sqlOptions['concat'][] = ['DISTINCT tv_episode_name ORDER BY tv_episode_number', 'episodes']; $this->sqlOptions['concat'][] = ['DISTINCT tv_episode_description ORDER BY tv_episode_number', 'episode_descriptions']; # TODO - episode_air_date concat is only DINSTINCT to avoid an issue were it was being joined to multiple times. # Find a way to fix the joining issue. Else, the inclusion of DISTINCT will cause issues with episodes of the # same air date $this->sqlOptions['concat'][] = ['DISTINCT tv_episode_air_date ORDER BY tv_episode_number', 'episode_air_dates']; $this->sqlOptions['concat'][] = ['tv_episode_running_time ORDER BY tv_episode_number', 'episode_running_times']; $this->sqlOptions['join']['tv_season'] = ['fk_tv_season_base_product', 'base_product_id']; $this->sqlOptions['join']['tv_series'] = ['fk_tv_season_tv_series', 'tv_series_id']; $this->sqlOptions['join']['tv_episode'] = ['fk_tv_episode_tv_season', 'tv_season_id']; $this->sqlOptions['join']['subtitles'] = ['fk_subtitles_base_product', 'base_product_id']; $this->sqlOptions['join']['languages_base_product'] = ['fk_languages_base_product_base_product', 'base_product_id']; $this->sqlOptions['join']['languages'] = ['language_id', 'fk_subtitles_languages OR fk_languages_base_product_languages']; }
function __construct($ref, $name, $price, $VAT = 0, $qty = 1) { parent::__construct($ref, $name, $price, $VAT = 0, $qty = 1); }
public function __construct() { parent::__construct(self::STAR_SHIP_PRODUCT_NAME, self::PIECE, self::PRICE); }
public function __construct() { parent::__construct(); }
function __construct($title, $firstName, $mainName, $price, $numPages) { parent::__construct($title, $firstName, $mainName, $price); $this->numPages = $numPages; }
public function __construct($name, $brand, $price, $type, $size, $color, $gender) { parent::__construct($name, $brand, $price); $this->size = $size; $this->type = $type; $this->color = $color; $this->gender = $gender; }
function __construct($name, $price, $serial, $year) { parent::__construct($name, $price, $serial); parent::$number++; $this->yearMade = $year; }
/** * constructor function * @param null $args */ public function __construct($args = null) { parent::__construct($args); $this->product_type = 'configurable'; }
/** * Contructor * * @param void * @return void */ public function __construct() { parent::__construct(); // Create SKU automatically $this->setSku(new Sku()); }
public function __construct($name = null, $prerequisites = array(), $supplyCost = null, $mineral = null, $gas = null, $time = null, $exposed = true) { parent::__construct($name, Zerg | Structure, $prerequisites, null, $supplyCost, $mineral, $gas, $time, $exposed); $this->supplyCost = -1; }
function __construct($name, $price, $desc, $flavor) { parent::__construct($name, $price, $desc); $this->flavor = $flavor; }
public function __construct($name, $brand, $price, $displaytype, $size) { parent::__construct($name, $brand, $price); $this->displaytype = $displaytype; $this->size = $size; }
public function __construct($id_product = null, $full = false, $id_lang = null) { $this->id_lang = $id_lang; parent::__construct($id_product, $full, $id_lang); }
public function __construct($id_product = NULL, $id_lang = NULL) { parent::__construct($id_product, false, $id_lang); }
public function __construct($precio_inc = 0, $precio = 0, $titulo = null, $ref_manufacturer = null, $short_description = null, $description = null, $url = null, $image = null, $categorias = null, $id_prov = null, $ref = null) { parent::__construct($precio, $titulo, $ref_manufacturer, $short_description, $description, $url, $image, $categorias, $id_prov, $ref); $this->precio = $precio - floatval($precio) / floatval($precio_inc); }
/** * @param CarProductSource $sourceSite * @param string[] $categoryIds * @param string $sourceProductId * @param string[] $partNumbers * @param string $name * @param string $url * @param string $thumbnail * @param float $price * @param string $description * @param float $weight */ public function __construct($sourceSite, $categoryIds, $sourceProductId, $partNumbers = array(), $name, $url, $thumbnail, $price, $description = null, $weight = null) { parent::__construct($sourceSite, $categoryIds, $sourceProductId, $name, $url, $thumbnail, $price, $description, $weight); $this->partNumbers = $partNumbers; }
public function __construct(\SimpleXMLElement $xml) { parent::__construct($xml); }
public function __construct() { parent::__construct(self::APPLE_PRODUCT_NAME, self::KILOGRAM, self::PRICE); }
public function __construct() { parent::__construct(self::LIGHT_PRODUCT_NAME, self::YEAR, self::PRICE); }
function __construct($data) { parent::__construct($data); $this->image_width = 151; $this->image_height = 151; }