當前位置: 首頁>>代碼示例>>PHP>>正文


PHP database::__construct方法代碼示例

本文整理匯總了PHP中database::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP database::__construct方法的具體用法?PHP database::__construct怎麽用?PHP database::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在database的用法示例。


在下文中一共展示了database::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct()
 {
     parent::__construct('sakila');
     //parse ini file to get key to Google geocoder API
     $parameters = parse_ini_file('../config/geocode.ini');
     $this->geoKey = $parameters['geoKey'];
 }
開發者ID:bbutlerfrog,項目名稱:benfrogs-pad,代碼行數:7,代碼來源:geoCode.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     parent::connect();
     // debug
     //parent::dump();
 }
開發者ID:robertbanh,項目名稱:mrmilestone,代碼行數:7,代碼來源:dbFacade.php

示例3:

 function __construct()
 {
     parent::__construct();
     $this->table_sale = 'sale';
     $this->table_sale_product = 'sale_product';
     $this->table_profitloss = 'accounts_profitloss';
 }
開發者ID:TheHanif,項目名稱:POS-10,代碼行數:7,代碼來源:class.dashboard.php

示例4: mysqli

 function __construct($db_name, $db_user, $db_pass, $db_host, $db_pre)
 {
     parent::__construct($db_name, $db_user, $db_pass, $db_host, $db_pre);
     $this->db = new mysqli($db_host, $db_user, $db_pass, $db_name);
     if (!$this->db->select_db($db_name)) {
         $this->db = false;
     }
 }
開發者ID:biggtfish,項目名稱:Sandbox,代碼行數:8,代碼來源:mysqli.php

示例5: array

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'packages';
     // Posible status for package
     $this->packages_status = array();
     $this->packages_status['active'] = 'Active';
     $this->packages_status['deactive'] = 'Deactive';
 }
開發者ID:qundeel,項目名稱:Restaurant-app,代碼行數:9,代碼來源:class.package.php

示例6:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'accounts';
     $this->general_ledger = 'accounts_general_ledger';
     $this->sales = 'accounts_sales';
     $this->profitloss = 'accounts_profitloss';
     $this->payable_receviable = 'accounts_payable_receviable';
     $this->purchases = 'accounts_purchases';
     $this->reconcilation = 'account_reconcilation';
 }
開發者ID:TheHanif,項目名稱:POS-Faizan,代碼行數:11,代碼來源:class.accounts.php

示例7:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'inventory';
 }
開發者ID:TheHanif,項目名稱:POS,代碼行數:5,代碼來源:class.inventory.php

示例8:

 function __construct()
 {
     parent::__construct();
     $this->table_company = 'companies';
 }
開發者ID:qundeel,項目名稱:Restaurant-app,代碼行數:5,代碼來源:class.header.php

示例9:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'branch_user_roles';
     $this->table_branch = 'branches';
 }
開發者ID:qundeel,項目名稱:Restaurant-app,代碼行數:6,代碼來源:class.branch_user_role.php

示例10:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'supplier';
     $this->bills = 'bills';
 }
開發者ID:TheHanif,項目名稱:POS-Faizan,代碼行數:6,代碼來源:class.supplier.php

示例11:

 function __construct($searchParams)
 {
     parent::__construct('employees');
     $this->searchParams = $searchParams;
 }
開發者ID:bbutlerfrog,項目名稱:benfrogs-pad,代碼行數:5,代碼來源:search.php

示例12:

 function __construct($host, $username, $password, $dbname)
 {
     parent::__construct($host, $username, $password, $dbname);
 }
開發者ID:essamamdani,項目名稱:aslamClass,代碼行數:4,代碼來源:index.php

示例13:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'banks';
     $this->transection = 'banks_transection';
 }
開發者ID:TheHanif,項目名稱:POS-Faizan,代碼行數:6,代碼來源:class.bank.php

示例14:

 function __construct()
 {
     parent::__construct();
 }
開發者ID:TheHanif,項目名稱:POS-Faizan,代碼行數:4,代碼來源:class.terminal.php

示例15:

 function __construct()
 {
     parent::__construct();
     $this->table_name = 'movies';
     $this->table_showtime = 'showtimes';
 }
開發者ID:qundeel,項目名稱:Restaurant-app,代碼行數:6,代碼來源:class.movie.php


注:本文中的database::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。