83 lines
3.2 KiB
PHP
Executable File
83 lines
3.2 KiB
PHP
Executable File
<?php
|
|
/*
|
|
* 2007-2013 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/osl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2013 PrestaShop SA
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
class OffredefideliteCore extends ObjectModel
|
|
{
|
|
// public $smarty;
|
|
public $id;
|
|
public $id_offrefidelite;
|
|
public $fidelite_civilite;
|
|
public $fidelite_nom;
|
|
public $fidelite_prenom;
|
|
public $fidelite_adr;
|
|
public $fidelite_ville;
|
|
public $fidelite_tel;
|
|
public $from;
|
|
public $days;
|
|
public $months;
|
|
public $years;
|
|
public $produits1;
|
|
public $produits2;
|
|
public $selectedIds;
|
|
|
|
|
|
/**
|
|
* @see ObjectModel::$definition
|
|
*/
|
|
public static $definition = array(
|
|
'table' => 'devspeoffrefidelite',
|
|
'primary' => 'id_offrefidelite',
|
|
'fields' => array(
|
|
// 'fidelite_adr' => array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'size' => 128),
|
|
// 'customer_service' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
|
|
|
// Lang fields
|
|
'fidelite_civilite' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'fidelite_nom' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'fidelite_prenom' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'fidelite_adr' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'fidelite_ville' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'fidelite_tel' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'from' => array('type' => self::TYPE_STRING, 'validate' => 'isString','size' => 255),
|
|
'days' => array('type' => self::TYPE_STRING, 'validate' => 'isString','size' => 2),
|
|
'months' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 2),
|
|
'years' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 4),
|
|
'produits1' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'produits2' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
'selectedIds' => array('type' => self::TYPE_STRING, 'validate' => 'isString', 'size' => 255),
|
|
// 'description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml'),
|
|
),
|
|
);
|
|
|
|
|
|
|
|
public function __construct($id = null, $id_lang = null)
|
|
{
|
|
parent::__construct($id, $id_lang);
|
|
}
|
|
}
|
|
|