• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP GFNotification类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中GFNotification的典型用法代码示例。如果您正苦于以下问题:PHP GFNotification类的具体用法?PHP GFNotification怎么用?PHP GFNotification使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了GFNotification类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_notification_post_category_values

 public static function get_notification_post_category_values()
 {
     require_once GFCommon::get_base_path() . '/notification.php';
     GFNotification::get_post_category_values();
 }
开发者ID:kidaak,项目名称:gravityforms,代码行数:5,代码来源:gravityforms.php


示例2: maybe_process_notification_list_action

 public static function maybe_process_notification_list_action()
 {
     if (empty($_POST) || !check_admin_referer('gform_notification_list_action', 'gform_notification_list_action')) {
         return;
     }
     $action = rgpost('action');
     $object_id = rgpost('action_argument');
     switch ($action) {
         case 'delete':
             $notification_deleted = GFNotification::delete_notification($object_id, rgget('id'));
             if ($notification_deleted) {
                 GFCommon::add_message(__('Notification deleted.', 'gravityforms'));
             } else {
                 GFCommon::add_error_message(__('There was an issue deleting this notification.', 'gravityforms'));
             }
             break;
         case 'duplicate':
             $notification_duplicated = GFNotification::duplicate_notification($object_id, rgget('id'));
             if ($notification_duplicated) {
                 GFCommon::add_message(__('Notification duplicates.', 'gravityforms'));
             } else {
                 GFCommon::add_error_message(__('There was an issue duplicating this notification.', 'gravityforms'));
             }
             break;
     }
 }
开发者ID:rushabhrakholiya,项目名称:TEST,代码行数:26,代码来源:notification.php


示例3: notification_page

 public static function notification_page()
 {
     require_once 'notification.php';
     //page header loaded in below function because admin messages were not yet available to the header to display
     GFNotification::notification_page();
 }
开发者ID:renztoygwapo,项目名称:lincoln,代码行数:6,代码来源:form_settings.php


示例4: forms

 public static function forms()
 {
     if (!GFCommon::ensure_wp_version()) {
         return;
     }
     $id = RGForms::get("id");
     $view = RGForms::get("view");
     if ($view == "entries") {
         require_once GFCommon::get_base_path() . "/entry_list.php";
         GFEntryList::leads_page($id);
     } else {
         if ($view == "entry") {
             require_once GFCommon::get_base_path() . "/entry_detail.php";
             GFEntryDetail::lead_detail_page();
         } else {
             if ($view == "notification") {
                 require_once GFCommon::get_base_path() . "/notification.php";
                 GFNotification::notification_page($id);
             } else {
                 if (is_numeric($id)) {
                     self::forms_page($id);
                 } else {
                     self::form_list_page();
                 }
             }
         }
     }
 }
开发者ID:Blueprint-Marketing,项目名称:interoccupy.net,代码行数:28,代码来源:gravityforms.php


示例5: __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


示例6: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP GFPDFEntryDetail类代码示例发布时间:2022-05-23
下一篇:
PHP GFLogging类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap