示例#1
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->managers->access('prodcuts')) {
         header('HTTP/1.1 401 Unauthorized');
         exit;
     }
 }
示例#3
0
文件: api.php 项目: wAmpIre/netmon
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->domxml = new DOMDocument('1.0', 'utf-8');
     $this->domxmlresponse = $this->domxml->createElement("netmon_response");
     if (!isset($this->_request['offset'])) {
         $this->_request['offset'] = false;
     }
     if (!isset($this->_request['limit'])) {
         $this->_request['limit'] = $this->default_limit;
     }
     if (!isset($this->_request['sort_by'])) {
         $this->_request['sort_by'] = false;
     }
     if (!isset($this->_request['order'])) {
         $this->_request['order'] = false;
     }
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->DBconnect();
 }
示例#5
0
 public function __construct($request)
 {
     parent::__construct($request);
     $this->db_name = 'event_master';
     $this->today = date('Y-m-d H:i:s');
 }
示例#6
0
文件: api.php 项目: Valouleloup/VNE
 public function __construct()
 {
     parent::__construct();
 }
示例#7
0
文件: api.php 项目: Ludim/clothes
 public function __construct()
 {
     parent::__construct();
     $this->setIndex();
 }
示例#8
0
 public function __construct($class, $method)
 {
     parent::__construct();
     $this->class = $class;
     $this->method = $method;
 }
示例#9
0
 public function __construct($request)
 {
     parent::__construct($request);
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     $this->conectarDB();
 }
示例#11
0
文件: tubeapi.php 项目: HoriaCr/tube
 /**  
  *  Class constructor.
  *  
  *  Open a new connection to the database with
  *  the provided configuration from db_config.php.
  *
  *  @return void
  */
 public function __construct()
 {
     parent::__construct();
     include_once "db_config.php";
     $this->conn = new mysqli(dbServer, dbUser, dbPassword, dbName);
 }