當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EEH_Template::status_legend方法代碼示例

本文整理匯總了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);
 }
開發者ID:aaronfrey,項目名稱:PepperLillie-GSP,代碼行數:13,代碼來源:EE_Message_List_Table_Tips.lib.php

示例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);
 }
開發者ID:DavidSteinbauer,項目名稱:event-espresso-core,代碼行數:10,代碼來源:Transactions_List_Table_Tips.lib.php

示例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);
 }
開發者ID:robert-osborne,項目名稱:event-espresso-core-1,代碼行數:10,代碼來源:Registration_List_Table_Tips.lib.php

示例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);
 }
開發者ID:robert-osborne,項目名稱:event-espresso-core-1,代碼行數:10,代碼來源:EE_Event_List_Table_Tips.lib.php

示例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);
 }
開發者ID:adrianjonmiller,項目名稱:hearts-being-healed,代碼行數:13,代碼來源:Promotions_List_Table_Tips.lib.php

示例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);
 }
開發者ID:DavidSteinbauer,項目名稱:event-espresso-core,代碼行數:10,代碼來源:EE_Event_Editor_Tips.lib.php

示例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);
 }
開發者ID:DavidSteinbauer,項目名稱:event-espresso-core,代碼行數:10,代碼來源:Transaction_Details_Tips.lib.php


注:本文中的EEH_Template::status_legend方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。