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


PHP MDB2_Driver_Common::loadModule方法代碼示例

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


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

示例1: __construct

 /**
  * Creates a new tag list
  *
  * @param SiteApplication $app The application using this tag list. The
  *                             application must include a
  *                             SiteDatabaseModule and can optionally include
  *                             SiteMemcacheModule and
  *                             SiteMultipleInstanceModule.
  * @param string $tag_list_string optional. A list of tag strings separated
  *                                 by '/' characters that are added to this
  *                                 list when the list is created. Duplicate
  *                                 tag strings are ignored.
  * @param boolen $show_private_photos Whether or not to load photos marked
  *                                 as private. Default is to not show them.
  */
 public function __construct(SiteApplication $app, $tag_list_string = null, $show_private_photos = false)
 {
     $this->app = $app;
     $this->setDatabase($this->app->db);
     $this->db->loadModule('Datatype', null, true);
     $this->show_private_photos = $show_private_photos;
     //SwatDB::setDebug();
     //$this->app->memcache->flush();
     $this->setTagsByString($tag_list_string);
 }
開發者ID:gauthierm,項目名稱:pinhole,代碼行數:25,代碼來源:PinholeTagList.php

示例2: tableExists

 public function tableExists($table)
 {
     $this->db->loadModule('Manager', null, true);
     $tables = $this->db->manager->listTables();
     if (MDB2::isError($tables)) {
         //$this->fail('Cannot list tables: '. $tables->getUserInfo());
         return false;
     }
     return in_array(strtolower($table), array_map('strtolower', $tables));
 }
開發者ID:gauthierm,項目名稱:MDB2,代碼行數:10,代碼來源:Abstract.php

示例3: dropTable

 /**
  * @brief drop a table
  * @param string $tableName the table to drop
  */
 public static function dropTable($tableName)
 {
     self::connectMDB2();
     self::$MDB2->loadModule('Manager');
     self::$MDB2->dropTable($tableName);
 }
開發者ID:ryanshoover,項目名稱:core,代碼行數:10,代碼來源:db.php

示例4: quoteArray

 /**
  * Quotes a PHP array into a PostgreSQL array
  *
  * This is used to quote the list of document types used in the internal
  * SQL query.
  *
  * @param array $array the array to quote.
  * @param string $type the SQL data type to use. The type is 'integer' by
  *                      default.
  *
  * @return string the array quoted as an SQL array.
  */
 protected function quoteArray($array, $type = 'integer')
 {
     $this->db->loadModule('Datatype');
     $return = 'ARRAY[';
     if (is_array($array)) {
         $return .= $this->db->datatype->implodeArray($array, $type);
     }
     $return .= ']';
     return $return;
 }
開發者ID:GervaisdeM,項目名稱:nate-go-search,代碼行數:22,代碼來源:NateGoSearchQuery.php


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