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


PHP CRUD::dbQL方法代碼示例

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


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

示例1: installDatabase

 public function installDatabase()
 {
     $fileTempAdmin = BASE . 'temp/admin.php';
     if (is_file($fileTempAdmin)) {
         $cFile = file_get_contents($fileTempAdmin);
         $cOutFile = unserialize($cFile);
         $adm_email = $cOutFile['email'];
     }
     $fileTempDatabase = BASE . 'temp/database.php';
     if (is_file($fileTempDatabase)) {
         $cFileDatabase = file_get_contents($fileTempDatabase);
         if ($cOutFileDatabase = unserialize($cFileDatabase)) {
             $sql_host = $cOutFileDatabase['hote'];
             $sql_db = $cOutFileDatabase['name'];
             $sql_login = $cOutFileDatabase['login'];
             $sql_pwd = $cOutFileDatabase['password'];
             $db = new CRUD($sql_host, $sql_db, $sql_login, $sql_pwd);
             $bigQueries = $this->getSQLQueryToImport();
             if (!empty($bigQueries)) {
                 if (array_key_exists('create', $bigQueries)) {
                     $db->dbQL($bigQueries['create']);
                     unset($bigQueries['create']);
                 }
                 foreach ($bigQueries as $bigquery) {
                     if (!empty($bigquery)) {
                         $db->dbQL($bigquery);
                     }
                 }
                 return true;
             }
         }
         return false;
     }
 }
開發者ID:vinothtimes,項目名稱:doorgets,代碼行數:34,代碼來源:databaseRequest.php

示例2: installDatabase

 public function installDatabase($data)
 {
     $adm_email = $data['user_email'];
     $sql_host = $data['database_host'];
     $sql_db = $data['database_name'];
     $sql_login = $data['database_login'];
     $sql_pwd = $data['database_password'];
     $db = new CRUD($sql_host, $sql_db, $sql_login, $sql_pwd);
     $dataTrad['title'] = $data['website_title'];
     $dataTrad['slogan'] = $data['website_slogan'];
     $dataTrad['description'] = $data['website_meta_description'];
     $dataTrad['copyright'] = $data['website_copyright'];
     $dataTrad['year'] = $data['website_year_creation'];
     $dataTrad['keywords'] = $data['website_meta_keywords'];
     $dataTrad['date_modification'] = time();
     $bigQueries = $this->getSQLQueryToImport();
     if (!empty($bigQueries)) {
         if (array_key_exists('create', $bigQueries)) {
             $db->dbQL($bigQueries['create']);
             unset($bigQueries['create']);
         }
         foreach ($bigQueries as $bigquery) {
             if (!empty($bigquery)) {
                 $db->dbQL($bigquery);
             }
         }
         return true;
     }
     return false;
 }
開發者ID:vinothtimes,項目名稱:doorgets,代碼行數:30,代碼來源:doorgetsFunctions.php

示例3: installDatabase

 public function installDatabase()
 {
     $fileTempAdmin = BASE . 'temp/admin.php';
     if (is_file($fileTempAdmin)) {
         $cFile = file_get_contents($fileTempAdmin);
         $cOutFile = unserialize($cFile);
         $adm_email = $cOutFile['email'];
     }
     $fileTempDatabase = BASE . 'temp/database.php';
     if (is_file($fileTempDatabase)) {
         $cFileDatabase = file_get_contents($fileTempDatabase);
         if ($cOutFileDatabase = unserialize($cFileDatabase)) {
             $sql_host = $cOutFileDatabase['hote'];
             $sql_db = $cOutFileDatabase['name'];
             $sql_login = $cOutFileDatabase['login'];
             $sql_pwd = $cOutFileDatabase['password'];
         }
         $db = new CRUD($sql_host, $sql_db, $sql_login, $sql_pwd);
         $fileTempWebsite = BASE . 'temp/website.php';
         if (is_file($fileTempWebsite)) {
             $cFileWebiste = file_get_contents($fileTempWebsite);
             if ($cOutFileWebsite = unserialize($cFileWebiste)) {
                 $dataTrad['title'] = $cOutFileWebsite['title'];
                 $dataTrad['slogan'] = $cOutFileWebsite['slogan'];
                 $dataTrad['description'] = $cOutFileWebsite['description'];
                 $dataTrad['copyright'] = $cOutFileWebsite['copyright'];
                 $dataTrad['year'] = $cOutFileWebsite['year'];
                 $dataTrad['keywords'] = $cOutFileWebsite['keywords'];
                 $dataTrad['date_modification'] = time();
                 $bigQueries = $this->getSQLQueryToImport($cOutFile);
                 if (!empty($bigQueries)) {
                     if (array_key_exists('create', $bigQueries)) {
                         $db->dbQL($bigQueries['create']);
                         unset($bigQueries['create']);
                     }
                     foreach ($bigQueries as $bigquery) {
                         if (!empty($bigquery)) {
                             $db->dbQL($bigquery);
                         }
                     }
                     return true;
                 }
             }
         }
         return false;
     }
 }
開發者ID:neoartdoo,項目名稱:CMS,代碼行數:47,代碼來源:polymorphicRequest.php


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