getContext() public method

public getContext ( )
Example #1
0
 /**
  * @JSON
  * @Authorization
  */
 public function getList()
 {
     $port = $_GET['port'];
     $email = $_GET['email'];
     $where = ' WHERE 1=1 ';
     if ($port) {
         $where .= " AND port={$port} ";
     }
     if ($email) {
         $where .= " AND email like '%{$email}%' ";
     }
     $pageData = new PageData('member', " {$where} ORDER BY uid", ['uid', 'port', 'email', 'nickname', 'plan', 'flow_up', 'flow_down', 'transfer', 'expireTime']);
     $pageData->execute();
     Template::setContext($pageData->getContext());
 }