本文整理匯總了PHP中osC_Order::getTransactionHistory方法的典型用法代碼示例。如果您正苦於以下問題:PHP osC_Order::getTransactionHistory方法的具體用法?PHP osC_Order::getTransactionHistory怎麽用?PHP osC_Order::getTransactionHistory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類osC_Order
的用法示例。
在下文中一共展示了osC_Order::getTransactionHistory方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getTransactionHistory
function getTransactionHistory()
{
global $toC_Json;
$osC_Order = new osC_Order($_REQUEST['orders_id']);
$records = array();
foreach ($osC_Order->getTransactionHistory() as $history) {
$records[] = array('date' => osC_DateTime::getShort($history['date_added'], true), 'status' => !empty($history['status']) ? $history['status'] : $history['status_id'], 'comments' => nl2br($history['return_value']));
}
$response = array(EXT_JSON_READER_ROOT => $records);
echo $toC_Json->encode($response);
}
示例2: foreach
</th>
<th width="50"><?php
echo $osC_Language->get('table_heading_status');
?>
</th>
<th width="20"> </th>
<th><?php
echo $osC_Language->get('table_heading_comments');
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach ($osC_Order->getTransactionHistory() as $history) {
?>
<tr>
<td valign="top"><?php
echo osC_DateTime::getShort($history['date_added'], true);
?>
</td>
<td valign="top"><?php
echo !empty($history['status']) ? $history['status'] : $history['status_id'];
?>
</td>
<td valign="top" align="center"><?php
echo osc_icon($history['return_status'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif', null, null);
?>
</td>