__construct() 공개 메소드

包体格式,可填值:json 、xml
public __construct ( $ServerIP, $ServerPort, $SoftVersion, $BodyType = 'xml' )
예제 #1
0
파일: api.php 프로젝트: onyxnz/quartzpos
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     include_once '../database.php';
     $this->db = $db;
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->objService = new General_Operation();
     // Init general operation class
 }
예제 #4
0
파일: api.php 프로젝트: nara15/TripGrip_Web
 public function __construct()
 {
     parent::__construct();
     // Iniciar el constructor del padre
     $this->dbConnect();
     // Inicar la coneción a la base de datos
 }
예제 #5
0
파일: api.php 프로젝트: rossanorb/php_rest
 public function __construct()
 {
     error_log('method: __construct');
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     $this->query_string = $_SERVER['QUERY_STRING'];
 }
예제 #7
0
파일: api.php 프로젝트: spyre/emiral
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     $this->lemn = new Lemn();
     $this->lemn->scrie('CONSTRUCTOR');
 }
예제 #8
0
파일: api.php 프로젝트: kevboutin/crudApp
 public function __construct()
 {
     parent::__construct();
     // Init parent constructor
     $this->log = Logger::getLogger(__CLASS__);
     $json = file_get_contents(self::DB_CREDENTIALS_FILEPATH);
     $credentials = json_decode($json, true);
     $this->dbConnect($credentials["user"], $credentials["password"]);
     $this->log->info("Connected to database " . self::DB . ".");
 }
예제 #9
0
 public function __construct()
 {
     // Init parent contructor
     parent::__construct();
     // obtain a new database Object to control database
     $this->db = new Database();
     // Initiate Database connection
     $this->db->connect();
     //call View to convert the list into json code
     $this->view = View::get_view();
 }
예제 #10
0
 public function __construct()
 {
     // Init parent contructor
     parent::__construct();
     // obtain a new database Object to control database
     $this->db = new Database();
     // Initiate Database connection
     $this->db->connect();
     //call JsonEncoder to convert the list into json code
     $this->jsonEncoder = JsonEncoder::get_json_encoder();
 }
예제 #11
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     include_once "logger.php";
     $this->logger = new Logger();
     $this->logger->write("INFO :", "PHP Scritp Name =>" . $_SERVER['REQUEST_URI']);
     $this->logger->write("INFO :", "Type of Request =>" . $_SERVER['REQUEST_METHOD']);
 }
예제 #12
0
파일: api.php 프로젝트: olegslavkin/softgre
 /**
  *  SoftGREd Connection 
  */
 public function __construct($softgred_host = null, $softgred_port = null)
 {
     global $cfg;
     parent::__construct();
     $this->softgred_host = $softgred_host ? $softgred_host : $cfg["DEFAULT_SOFTGRED_HOST"];
     $this->softgred_port = $softgred_port ? $softgred_port : $cfg["DEFAULT_SOFTGRED_PORT"];
     $this->sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
     if (!$this->sock) {
         $result = array('status' => 'error', 'body' => "socket_create() failed: reason: " . socket_strerror(socket_last_error()));
         $this->response($this->json($result), 406);
     }
 }
예제 #13
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     include_once "logger.php";
     $this->logger = new Logger();
     $this->logger->write("INFO :", "PHP Scritp Name =>" . $_SERVER['REQUEST_URI']);
     $this->logger->write("INFO :", "Type of Request =>" . $_SERVER['REQUEST_METHOD']);
     /* $this->server = DB_SERVER;
        $this->username = DB_USER;
        $this->password = DB_PASSWORD;
        $this->db = DB; */
 }
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     include_once "db_functions.php";
     include_once "GCM.php";
     include_once "logger.php";
     include_once "iosPushUniversal.php";
     $this->db_func = new DB_Functions();
     $this->gcm = new GCM();
     $this->logger = new Logger();
     $this->obj = new iosPushUniversal();
     $this->logger->write("INFO :", "PHP Scritp Name =>" . $_SERVER['REQUEST_URI']);
     $this->logger->write("INFO :", "Type of Request =>" . $_SERVER['REQUEST_METHOD']);
 }
예제 #15
0
파일: api.php 프로젝트: varunkhan09/varun
 public function __construct($vendorshop_database, $server, $user, $password)
 {
     parent::__construct();
     if (isset($vendorshop_database)) {
         $this->db_database = $vendorshop_database;
     }
     if (isset($server)) {
         $this->db_server = $server;
     }
     if (isset($user)) {
         $this->db_user = $user;
     }
     if (isset($password)) {
         $this->db_password = $password;
     }
     // Init parent contructor
     $this->dbConnect();
     // Initiate Database connection
     $this->query_string = $_SERVER['QUERY_STRING'];
 }
예제 #16
0
파일: api.php 프로젝트: kushansen/Codechef
 public function __construct()
 {
     parent::__construct();
     $this->contactsService = new ContactsService();
 }
예제 #17
0
 public function __construct()
 {
     parent::__construct();
     $this->dbConnect();
 }
예제 #18
0
파일: api.php 프로젝트: nemoluv/pushwing
 public function __construct()
 {
     parent::__construct();
     //엔진
     $this->eg = new Engine();
 }
예제 #19
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #20
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
 }
예제 #21
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('directory');
 }
예제 #22
0
파일: Hoods.php 프로젝트: bossonchan/jjl
 public function __construct()
 {
     parent::__construct();
     $this->load->model('hoods_model');
 }
예제 #23
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->ultis = new Utils();
 }
예제 #24
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->catalog = new catalogclass();
 }
예제 #25
0
 public function __construct()
 {
     parent::__construct();
     // Init parent contructor
     $this->uploading_path = getcwd() . "/upload";
 }