当前位置: 首页>>代码示例>>PHP>>正文


PHP es_cls_common::download方法代码示例

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


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

示例1: switch

         switch ($option) {
             case "view_subscriber":
                 $sSql = "select es_email_mail as Email, es_email_name as Name, es_email_status as Status, es_email_created as Created,";
                 $sSql = $sSql . " es_email_group as Emailgroup from " . $wpdb->prefix . "es_emaillist ORDER BY es_email_mail";
                 $data = $wpdb->get_results($sSql);
                 es_cls_common::download($data, 's', '');
                 break;
             case "registered_user":
                 $data = $wpdb->get_results("select user_email as 'Email', user_nicename as 'Name' from " . $wpdb->prefix . "users ORDER BY user_nicename");
                 es_cls_common::download($data, 'r', '');
                 break;
             case "commentposed_user":
                 $sSql = "SELECT DISTINCT(comment_author_email) as Email, comment_author as 'Name'";
                 $sSql = $sSql . "from " . $wpdb->prefix . "comments WHERE comment_author_email <> '' ORDER BY comment_author_email";
                 $data = $wpdb->get_results($sSql);
                 es_cls_common::download($data, 'c', '');
                 break;
             default:
                 _e('Unexpected url submit has been detected', ELP_TDOMAIN);
                 break;
         }
     } else {
         _e('Unexpected url submit has been detected', ELP_TDOMAIN);
     }
 } else {
     _e('Unexpected url submit has been detected', ELP_TDOMAIN);
 }
 //}
 //else
 //{
 //	_e('Unexpected url submit has been detected', ELP_TDOMAIN);
开发者ID:MaheshSamrat,项目名称:cpapstorelasvegas.com,代码行数:31,代码来源:export-email-address.php


注:本文中的es_cls_common::download方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。