本文整理汇总了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>