Last active
March 21, 2020 12:59
-
-
Save akadak/2c999b948458acd9bee24de38d3df4df to your computer and use it in GitHub Desktop.
Product.php dosyası
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Product extends ProductCore | |
{ | |
//TODO: Eklenen alan | |
/** @var int point */ | |
public $eticaret; //burası veritabanındaki sütun adıyla aynı olmalıdır. | |
public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) | |
{ | |
Product::$definition['fields']['eticaret'] = array( | |
'type' => self::TYPE_HTML, //içerik tipi HTML olsun dedim. | |
'shop' => true, | |
// 'validate' => 'isUnsignedInt', //kontrol yapmak istiyorsanız | |
'required' => false //zorunlu alan mı | |
); | |
parent::__construct($id_product, $full, $id_lang, $id_shop, $context); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment