本文整理匯總了PHP中Report::getReport方法的典型用法代碼示例。如果您正苦於以下問題:PHP Report::getReport方法的具體用法?PHP Report::getReport怎麽用?PHP Report::getReport使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Report
的用法示例。
在下文中一共展示了Report::getReport方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getReport
public function getReport(DataParam $dataParam, array $years)
{
try {
$asJson = $this->asJson;
$this->asJson = false;
$values = $this->getValues($dataParam, $years);
$this->asJson = $asJson;
return $this->report->getReport($values, $years, $this->grouper);
} catch (LoginException $exception) {
return $this->loginExceptionMessage($exception);
}
}
示例2: Report
<?php
require 'Config/common.php';
require MODEL_PATH . 'Report.php';
$report = new Report();
//getting filter list
$date_filter_list = $report->getDateFilter();
$client_filter_list = $report->getClientFilter();
$product_filter_list = $report->getProductFilter();
//getting invoice list
$invoice_list = $report->getReport();
include VIEW_PATH . 'dashboard.php';
示例3: setStandartData
/**
* Get data for standart report and assign with xt
* @param &Array _options
*/
public function setStandartData(&$_options)
{
include_once getabspath('classes/reportlib.php');
$whereComponents = $this->getWhereComponents();
$sqlArray = $this->getReportSQLData();
$rb = new Report($sqlArray, $this->pSet->GetTableData(".orderindexes"), $this->connection, $this->pageSize, $_options, $whereComponents["searchWhere"], $whereComponents["searchHaving"], $this);
$this->arrReport = $rb->getReport($this->pagestart);
$this->setDetailLinks();
$this->buildPagination();
$this->standardReportCommonAssign();
}
示例4: setStandartData
/**
* Get data for standart report and assign with xt
* @param &Array _options
*/
public function setStandartData(&$_options)
{
include_once getabspath('classes/reportlib.php');
if (!$_SESSION[$this->sessionPrefix . "_pagesize"]) {
$_SESSION[$this->sessionPrefix . "_pagesize"] = -1;
}
// a temporary fix
if (!$_SESSION[$this->sessionPrefix . "_pagenumber"]) {
$_SESSION[$this->sessionPrefix . "_pagenumber"] = 1;
}
if (isset($_REQUEST["all"]) && $_REQUEST["all"]) {
$PageSize = -1;
$pagestart = 0;
$this->jsSettings['tableSettings'][$this->tName]['reportPrintMode'] = 1;
} else {
$PageSize = $_SESSION[$this->sessionPrefix . "_pagesize"];
$pagestart = ($_SESSION[$this->sessionPrefix . "_pagenumber"] - 1) * $PageSize;
}
$whereComponents = $this->getWhereComponents();
$sqlArray = $this->getReportSQLData();
$rb = new Report($sqlArray, $this->pSet->GetTableData(".orderindexes"), $this->connection, $PageSize, $_options, $whereComponents["searchWhere"], $whereComponents["searchHaving"], $this);
$this->arrReport = $rb->getReport($pagestart);
$this->standardReportCommonAssign();
}
示例5: elseif
} elseif ($date_type == 'last_year') {
$str = date('Y-m-d', strtotime('-1 year ' . date('Y-m-d')));
list($y, $m, $d) = explode('-', $str);
$start_date = "{$y}-01-01";
$end_date = "{$y}-12-31";
$condition .= " and inv.invoice_date>='{$start_date}' and inv.invoice_date<='{$end_date}'";
}
}
if ($client_id != '') {
$condition .= " and c.client_id='{$client_id}'";
}
if ($product_id != '') {
$condition .= " and p.product_id='{$product_id}'";
}
}
$invoice_list = $report->getReport($condition);
if (!$invoice_list) {
$html .= '<tr><td colspan="6" align="center">No data found for selected filter </td><tr>';
} else {
foreach ($invoice_list as $key => $value) {
$html .= '
<tr>
<td>' . $value['invoice_num'] . '</td>
<td>' . date('d/m/Y', strtotime($value['invoice_date'])) . '</td>
<td>' . $value['product_description'] . '</td>
<td>' . $value['qty'] . '</td>
<td>' . $value['price'] . '</td>
<td>' . round($value['price'] * $value['qty'], 2) . '</td>
<tr>';
}
}