Skip to content

Instantly share code, notes, and snippets.

@akadak
Last active March 21, 2020 12:59
Show Gist options
  • Save akadak/2c999b948458acd9bee24de38d3df4df to your computer and use it in GitHub Desktop.
Save akadak/2c999b948458acd9bee24de38d3df4df to your computer and use it in GitHub Desktop.
Product.php dosyası
<?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