84 lines
2.9 KiB
PHP
Executable File
84 lines
2.9 KiB
PHP
Executable File
<?php
|
|
/*
|
|
* 2007-2011 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 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/afl-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-2011 PrestaShop SA
|
|
* @version Release: $Revision: 6594 $
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
class MondialRelayClass extends ObjectModel
|
|
{
|
|
public $id_customer;
|
|
public $id_method;
|
|
public $id_cart;
|
|
public $id_order = NULL;
|
|
public $MR_poids = NULL;
|
|
public $MR_Selected_Num;
|
|
public $MR_Selected_LgAdr1;
|
|
public $MR_Selected_LgAdr2 = NULL;
|
|
public $MR_Selected_LgAdr3;
|
|
public $MR_Selected_LgAdr4 = NULL;
|
|
public $MR_Selected_CP;
|
|
public $MR_Selected_Ville;
|
|
public $MR_Selected_Pays;
|
|
public $url_suivi= NULL;
|
|
public $url_etiquette= NULL;
|
|
public $exp_number= NULL;
|
|
public $date_add;
|
|
public $date_upd;
|
|
|
|
|
|
protected $table = 'mr_selected';
|
|
protected $identifier = 'id_mr_selected';
|
|
|
|
|
|
public function getFields()
|
|
{
|
|
parent::validateFields();
|
|
|
|
if (isset($this->id_mr_selected))
|
|
$fields['id_mr_selected'] = (int)($this->id_mr_selected);
|
|
|
|
$fields['id_customer'] = (int)($this->id_customer);
|
|
$fields['id_method'] = (int)($this->id_method);
|
|
$fields['id_cart'] = (int)($this->id_cart);
|
|
$fields['id_order'] = is_null($this->id_order) ? 0 : (int)($this->id_order);
|
|
$fields['MR_Selected_Num'] = pSQL($this->MR_Selected_Num);
|
|
$fields['MR_Selected_LgAdr1'] = pSQL($this->MR_Selected_LgAdr1);
|
|
$fields['MR_Selected_LgAdr2'] = pSQL($this->MR_Selected_LgAdr2);
|
|
$fields['MR_Selected_LgAdr3'] = pSQL($this->MR_Selected_LgAdr3);
|
|
$fields['MR_Selected_LgAdr4'] = pSQL($this->MR_Selected_LgAdr4);
|
|
$fields['MR_Selected_CP'] = (int)($this->MR_Selected_CP);
|
|
$fields['MR_Selected_Ville'] = pSQL($this->MR_Selected_Ville);
|
|
$fields['MR_Selected_Pays'] = pSQL($this->MR_Selected_Pays);
|
|
$fields['url_suivi'] = is_null($this->url_suivi) ? 0 : pSQL($this->url_suivi) ;
|
|
$fields['url_etiquette'] = is_null($this->url_etiquette) ? 0 : pSQL($this->url_etiquette) ;
|
|
$fields['exp_number'] = is_null($this->exp_number) ? 0 : pSQL($this->exp_number) ;
|
|
$fields['date_add'] = pSQL($this->date_add);
|
|
$fields['date_upd'] = pSQL($this->date_upd);
|
|
$fields['MR_poids'] = is_null($this->MR_poids) ? 0 : pSQL($this->MR_poids) ;
|
|
return $fields;
|
|
}
|
|
}
|
|
|
|
?>
|