本文整理汇总了PHP中Orders::getDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Orders::getDetails方法的具体用法?PHP Orders::getDetails怎么用?PHP Orders::getDetails使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orders
的用法示例。
在下文中一共展示了Orders::getDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isUpgrade
/**
* Check if the order become from an upgrade
*
* @param integer $orderid
*/
public static function isUpgrade($orderid)
{
$orderDetails = Orders::getDetails($orderid);
foreach ($orderDetails as $orderDetail) {
$parent_orderid = intval($orderDetail['parent_orderid']);
if ($parent_orderid != 0) {
return $parent_orderid;
}
}
return false;
}
示例2: orderdetailGrid
private function orderdetailGrid()
{
$request = $this->getRequest();
if (isset($request->id) && is_numeric($request->id)) {
$rs = Orders::getDetails($request->id, "detail_id,\n\t\t\t DATE_FORMAT(d.date_start, '" . Settings::getMySQLDateFormat('dateformat') . "') as date-start,\n\t\t\t DATE_FORMAT(d.date_end, '" . Settings::getMySQLDateFormat('dateformat') . "') as date-end,\n\t\t\t d.quantity, \n\t\t\t\t\t\t\t\t d.description, \n\t\t\t d.setupfee, \n\t\t\t CONCAT(d.discount, ' %') as discount, \n\t\t\t\t\t\t\t\t d.price, \n\t\t d.vat,\n\t\t\t\t\t\t\t\t d.subtotal,\n\t\t\t CONCAT(dm.domain, '.',ws.tld) as domain");
if (isset($rs)) {
$columns = array();
$columns[] = $this->translator->translate('Quantity');
$columns[] = $this->translator->translate('Description');
$columns[] = $this->translator->translate('Setup fees');
$columns[] = $this->translator->translate('Price');
$columns[] = $this->translator->translate('VAT');
$columns[] = $this->translator->translate('Subtotal');
$columns[] = $this->translator->translate('Start data');
$columns[] = $this->translator->translate('End data');
$columns[] = $this->translator->translate('Discount');
$columns[] = $this->translator->translate('Domain');
return array('columns' => $columns, 'records' => $rs, 'delete' => array('controller' => 'ordersitems', 'action' => 'confirm'), 'edit' => array('controller' => 'ordersitems', 'action' => 'edit'), 'actions' => array('/admin/services/edit/id/' => $this->translator->translate('Service')), 'pager' => true);
}
}
}