本文整理匯總了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);