当前位置: 首页>>代码示例>>PHP>>正文


PHP Orders::getDetails方法代码示例

本文整理汇总了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;
 }
开发者ID:kokkez,项目名称:shineisp,代码行数:16,代码来源:Orders.php

示例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);
         }
     }
 }
开发者ID:kokkez,项目名称:shineisp,代码行数:21,代码来源:OrdersController.php


注:本文中的Orders::getDetails方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。