[+] BO : add new feature, Order edition
This commit is contained in:
+13
-9
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@@ -25,6 +25,12 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated 1.5.0.1
|
||||
* @see OrderPaymentCore
|
||||
*
|
||||
*/
|
||||
class PaymentCCCore extends ObjectModel
|
||||
{
|
||||
public $id_order;
|
||||
@@ -60,7 +66,7 @@ class PaymentCCCore extends ObjectModel
|
||||
$fields['date_add'] = pSQL($this->date_add);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
{
|
||||
if (parent::add($autodate, $nullValues))
|
||||
@@ -70,20 +76,18 @@ class PaymentCCCore extends ObjectModel
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the detailed payment of an order
|
||||
* @param int $id_order
|
||||
* @return array
|
||||
* @deprecated 1.5.0.1
|
||||
* @see OrderPaymentCore
|
||||
*/
|
||||
public static function getByOrderId($id_order)
|
||||
{
|
||||
$query = '
|
||||
SELECT *
|
||||
FROM `'._DB_PREFIX_.'payment_cc`
|
||||
WHERE `id_order` = '.$id_order;
|
||||
|
||||
return Db::getInstance()->getRow($query);
|
||||
Tools::displayAsDeprecated();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user