本文整理汇总了PHP中Clients::requestPhone方法的典型用法代码示例。如果您正苦于以下问题:PHP Clients::requestPhone方法的具体用法?PHP Clients::requestPhone怎么用?PHP Clients::requestPhone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Clients
的用法示例。
在下文中一共展示了Clients::requestPhone方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DB
<?php
/**
* Created by PhpStorm.
* User: geol
* Date: 6/14/15
* Time: 4:11 AM
*/
error_reporting(E_ALL);
ini_set('display_errors', true);
define('CLASS_DIR', 'classes/');
set_include_path(get_include_path() . PATH_SEPARATOR . CLASS_DIR);
spl_autoload_register();
$connect = new DB('clodo', 'user', 'password');
$db = $connect->db;
$clients = new Clients($db);
if ($_GET['action'] == 'list') {
$filter = array('name' => filter_input(INPUT_GET, 'name', FILTER_SANITIZE_MAGIC_QUOTES), 'ballance' => filter_input(INPUT_GET, 'name', FILTER_SANITIZE_NUMBER_FLOAT), 'hasPhone' => filter_input(INPUT_GET, 'hasPhone', FILTER_VALIDATE_BOOLEAN), 'registerFrom' => filter_input(INPUT_GET, 'registerFrom', FILTER_SANITIZE_MAGIC_QUOTES), 'registerTo' => filter_input(INPUT_GET, 'registerTo', FILTER_SANITIZE_MAGIC_QUOTES), 'from' => filter_input(INPUT_GET, 'from', FILTER_SANITIZE_NUMBER_FLOAT), 'to' => filter_input(INPUT_GET, 'to', FILTER_SANITIZE_NUMBER_FLOAT));
$json = json_encode($clients->getClientList($filter));
print $json;
}
if ($_GET['action'] == 'requestPhone') {
return $clients->requestPhone(filter_input(INPUT_GET, 'email', FILTER_SANITIZE_EMAIL));
}