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


PHP GFNotification::get_notification_services方法代碼示例

本文整理匯總了PHP中GFNotification::get_notification_services方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFNotification::get_notification_services方法的具體用法?PHP GFNotification::get_notification_services怎麽用?PHP GFNotification::get_notification_services使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GFNotification的用法示例。


在下文中一共展示了GFNotification::get_notification_services方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * GFNotificationTable constructor.
  *
  * Sets required class properties and defines the list table columns
  *
  * @see GFNotification::get_notification_events
  * @see GFNotification::get_notification_services
  *
  * @param array $form The Form Object to use
  */
 function __construct($form)
 {
     $this->form = $form;
     $this->notification_events = GFNotification::get_notification_events($form);
     $this->notification_services = GFNotification::get_notification_services();
     $columns = array('cb' => '', 'name' => esc_html__('Name', 'gravityforms'), 'subject' => esc_html__('Subject', 'gravityforms'));
     if (count($this->notification_events) > 1) {
         $columns['event'] = esc_html__('Event', 'gravityforms');
     }
     if (count($this->notification_services) > 1) {
         $columns['service'] = esc_html__('Service', 'gravityforms');
     }
     $this->_column_headers = array($columns, array(), array(), 'name');
     parent::__construct();
 }
開發者ID:SayenkoDesign,項目名稱:ividf,代碼行數:25,代碼來源:notification.php

示例2: column_service

 function column_service($notification)
 {
     $services = GFNotification::get_notification_services();
     if (!rgar($notification, 'service')) {
         esc_html_e('WordPress', 'gravityforms');
     } else {
         if (rgar($services, $notification['service'])) {
             $service = rgar($services, $notification['service']);
             echo rgar($service, 'label');
         } else {
             esc_html_e('Undefined Service', 'gravityforms');
         }
     }
 }
開發者ID:arobbins,項目名稱:davis,代碼行數:14,代碼來源:notification.php


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