本文整理汇总了PHP中EEH_Template::status_legend方法的典型用法代码示例。如果您正苦于以下问题:PHP EEH_Template::status_legend方法的具体用法?PHP EEH_Template::status_legend怎么用?PHP EEH_Template::status_legend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EEH_Template
的用法示例。
在下文中一共展示了EEH_Template::status_legend方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _message_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EEM_Message constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _message_status_legend($status)
{
$status_array = array('sent_status' => EEM_Message::status_sent, 'idle_status' => EEM_Message::status_idle, 'failed_status' => EEM_Message::status_failed, 'resend_status' => EEM_Message::status_resend, 'incomplete_status' => EEM_Message::status_incomplete, 'retry_status' => EEM_Message::status_retry);
if (defined('WP_DEBUG') && WP_DEBUG) {
$status_array['debug_only_status'] = EEM_Message::status_debug_only;
}
return EEH_Template::status_legend($status_array, $status);
}
示例2: _transaction_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EEM_Transaction constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _transaction_status_legend($status)
{
$status_array = array('overpaid' => EEM_Transaction::overpaid_status_code, 'complete' => EEM_Transaction::complete_status_code, 'incomplete' => EEM_Transaction::incomplete_status_code, 'failed' => EEM_Transaction::failed_status_code);
return EEH_Template::status_legend($status_array, $status);
}
示例3: _registration_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EEM_Registration constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _registration_status_legend($status)
{
$status_array = array('approved_status' => EEM_Registration::status_id_approved, 'pending_status' => EEM_Registration::status_id_pending_payment, 'not_approved' => EEM_Registration::status_id_not_approved, 'declined_status' => EEM_Registration::status_id_declined, 'cancelled_status' => EEM_Registration::status_id_cancelled);
return EEH_Template::status_legend($status_array, $status);
}
示例4: _event_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EE_Datetime constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _event_status_legend($status)
{
$status_array = array('active_status' => EE_Datetime::active, 'upcoming_status' => EE_Datetime::upcoming, 'postponed_status' => EE_Datetime::postponed, 'sold_out_status' => EE_Datetime::sold_out, 'cancelled_status' => EE_Datetime::cancelled, 'expired_status' => EE_Datetime::expired, 'inactive_status' => EE_Datetime::inactive);
return EEH_Template::status_legend($status_array, $status);
}
示例5: _promotion_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
*
* @since 1.0.0
*
* @param EE_Promotion constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _promotion_status_legend($status)
{
$status_array = array('active_status' => EE_Promotion::active, 'upcoming_status' => EE_Promotion::upcoming, 'expired_status' => EE_Promotion::expired, 'unavailable_status' => EE_Promotion::unavailable);
return EEH_Template::status_legend($status_array, $status);
}
示例6: _ticket_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EE_Ticket constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _ticket_status_legend($status)
{
$status_array = array('archived' => EE_Ticket::archived, 'expired' => EE_Ticket::expired, 'sold_out' => EE_Ticket::sold_out, 'pending' => EE_Ticket::pending, 'onsale' => EE_Ticket::onsale);
return EEH_Template::status_legend($status_array, $status);
}
示例7: _payment_status_legend
/**
* output the relevant ee-status-legend with the designated status highlighted.
* @param EEM_Payment constant $status What status is set (by class)
* @return string The status legend with the related status highlighted
*/
private function _payment_status_legend($status)
{
$status_array = array('approved' => EEM_Payment::status_id_approved, 'pending' => EEM_Payment::status_id_pending, 'cancelled' => EEM_Payment::status_id_cancelled, 'declined' => EEM_Payment::status_id_declined, 'failed' => EEM_Payment::status_id_failed);
return EEH_Template::status_legend($status_array, $status);
}