当前位置: 首页>>代码示例>>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;未经允许,请勿转载。