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


PHP Zend_Db_Select::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Class constructor
  * Add straight join support
  *
  * @param Zend_Db_Adapter_Abstract $adapter
  */
 public function __construct(Zend_Db_Adapter_Abstract $adapter)
 {
     if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) {
         self::$_partsInit = array(self::STRAIGHT_JOIN => false) + self::$_partsInit;
     }
     parent::__construct($adapter);
 }
開發者ID:QiuLihua83,項目名稱:magento-enterprise-1.13.1.0,代碼行數:13,代碼來源:Select.php

示例2: __construct

 /**
  * Class constructor
  * Add straight join support
  *
  * @param \Magento\Framework\DB\Adapter\Pdo\Mysql $adapter
  */
 public function __construct(\Magento\Framework\DB\Adapter\Pdo\Mysql $adapter)
 {
     if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) {
         self::$_partsInit = [self::STRAIGHT_JOIN => false] + self::$_partsInit;
     }
     parent::__construct($adapter);
 }
開發者ID:tingyeeh,項目名稱:magento2,代碼行數:13,代碼來源:Select.php

示例3: __construct

 public function __construct($table, $adapter = false)
 {
     $this->adapter = $adapter ? $adapter : YARR_Abstract::getAdapter();
     $this->class = false;
     parent::__construct($this->adapter);
     $this->from($table);
 }
開發者ID:hifi,項目名稱:yarr,代碼行數:7,代碼來源:Select.php

示例4: __construct

 /**
  * Class constructor
  *
  * @param Zend_Db_Adapter_Abstract $adapter
  */
 public function __construct(Zend_Db_Adapter_Abstract $adapter)
 {
     parent::__construct($adapter);
     if (!in_array(self::STRAIGHT_JOIN_ON, self::$_joinTypes)) {
         self::$_joinTypes[] = self::STRAIGHT_JOIN_ON;
         self::$_partsInit = array(self::STRAIGHT_JOIN => false) + self::$_partsInit;
     }
 }
開發者ID:jpbender,項目名稱:mage_virtual,代碼行數:13,代碼來源:Select.php

示例5: __construct

 /**
  * Class constructor
  * Add straight join support
  *
  * @param Adapter\Pdo\Mysql $adapter
  * @param Select\SelectRenderer $selectRenderer
  * @param array $parts
  */
 public function __construct(\Magento\Framework\DB\Adapter\Pdo\Mysql $adapter, \Magento\Framework\DB\Select\SelectRenderer $selectRenderer, $parts = [])
 {
     self::$_partsInit = array_merge(self::$_partsInit, $parts);
     if (!isset(self::$_partsInit[self::STRAIGHT_JOIN])) {
         self::$_partsInit = [self::STRAIGHT_JOIN => false] + self::$_partsInit;
     }
     $this->selectRenderer = $selectRenderer;
     parent::__construct($adapter);
 }
開發者ID:hientruong90,項目名稱:magento2_installer,代碼行數:17,代碼來源:Select.php

示例6: __construct

 /**
  * @param Zend_Db_Adapter $adapter (optional) Adapter to use instead of the
  * one set up by Omeka.
  */
 public function __construct($adapter = null)
 {
     if (!$adapter) {
         //Omeka's connection to the Zend_Db_Adapter
         if (!($db = Zend_Registry::get('bootstrap')->getResource('Db'))) {
             throw new RuntimeException("Unable to retrieve Omeka_Db instance.");
         }
         $adapter = $db->getAdapter();
     }
     return parent::__construct($adapter);
 }
開發者ID:lchen01,項目名稱:STEdwards,代碼行數:15,代碼來源:Select.php

示例7: __construct

 public function __construct($adapter, $sqloptions)
 {
     parent::__construct($adapter);
     // set limit
     if (!empty($sqloptions['limit'])) {
         if (!empty($sqloptions['start'])) {
             $start = $sqloptions['start'];
         } else {
             $start = 0;
         }
         $this->limit($sqloptions['limit'], $start);
     }
     // set order
     if (!empty($sqloptions['order'])) {
         $this->order($sqloptions['order']);
     }
     // set or where statement
     $this->setWhere($sqloptions);
     // set where statement
     $this->setOrWhere($sqloptions);
 }
開發者ID:vrtulka23,項目名稱:daiquiri,代碼行數:21,代碼來源:Select.php

示例8: __construct

 /**
  * Class constructor
  *
  * @param Zend_Db_Table_Abstract $adapter
  */
 public function __construct(Zend_Db_Table_Abstract $table)
 {
     parent::__construct($table->getAdapter());
     $this->setTable($table);
 }
開發者ID:netixx,項目名稱:Stock,代碼行數:10,代碼來源:Select.php

示例9: __construct

 /**
  * Class constructor
  *
  * @param Zend_Db_Adapter_Abstract $adapter
  */
 public function __construct(Zend_Db_Adapter_Abstract $adapter)
 {
     parent::__construct($adapter);
 }
開發者ID:HelioFreitas,項目名稱:magento-pt_br,代碼行數:9,代碼來源:Select.php

示例10: __construct

 public function __construct($selectObject, $db)
 {
     $x = parent::__construct($db);
     $this->_parts = $selectObject->_parts;
 }
開發者ID:valentinbora,項目名稱:joobsbox-php,代碼行數:5,代碼來源:FetchObject.php

示例11: __construct

 /**
  * Class constructor
  *
  * @param Kwf_Db_Table $table
  */
 public function __construct(Kwf_Db_Table $table)
 {
     parent::__construct($table->getAdapter());
     $this->_table = $table;
 }
開發者ID:koala-framework,項目名稱:koala-framework,代碼行數:10,代碼來源:Select.php


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