本文整理汇总了PHP中osC_Order::getStatusHistory方法的典型用法代码示例。如果您正苦于以下问题:PHP osC_Order::getStatusHistory方法的具体用法?PHP osC_Order::getStatusHistory怎么用?PHP osC_Order::getStatusHistory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osC_Order
的用法示例。
在下文中一共展示了osC_Order::getStatusHistory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listOrdersStatus
function listOrdersStatus()
{
global $toC_Json;
$osC_Order = new osC_Order($_REQUEST['orders_id']);
$records = array();
foreach ($osC_Order->getStatusHistory() as $status_history) {
$records[] = array('date_added' => osC_DateTime::getShort($status_history['date_added'], true), 'status' => $status_history['status'], 'comments' => nl2br($status_history['comment']), 'customer_notified' => osc_icon($status_history['customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'), 'sms_customer_notified' => osc_icon($status_history['sms_customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'));
}
$response = array(EXT_JSON_READER_ROOT => $records);
echo $toC_Json->encode($response);
}
示例2: foreach
</td>
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_STATUS;
?>
</td>
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_COMMENTS;
?>
</td>
<td class="dataTableHeadingContent" align="right"><?php
echo TABLE_HEADING_CUSTOMER_NOTIFIED;
?>
</td>
</tr>
<?php
foreach ($osC_Order->getStatusHistory() as $status_history) {
?>
<tr class="dataTableRow">
<td class="dataTableContent" valign="top"><?php
echo tep_datetime_short($status_history['date_added']);
?>
</td>
<td class="dataTableContent" valign="top"><?php
echo $status_history['status'];
?>
</td>
<td class="dataTableContent" valign="top"><?php
echo nl2br($status_history['comment']);
?>
</td>
<td class="dataTableContent" align="right" valign="top"><?php