本文整理汇总了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;未经允许,请勿转载。 |
请发表评论