当前位置: 首页>>代码示例>>PHP>>正文


PHP Builder::__construct方法代码示例

本文整理汇总了PHP中Illuminate\Database\Query\Builder::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Builder::__construct方法的具体用法?PHP Builder::__construct怎么用?PHP Builder::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Database\Query\Builder的用法示例。


在下文中一共展示了Builder::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Create a new join clause instance.
  *
  * @param  \Illuminate\Database\Query\Builder $parentQuery
  * @param  string  $type
  * @param  string  $table
  * @return void
  */
 public function __construct(Builder $parentQuery, $type, $table)
 {
     $this->type = $type;
     $this->table = $table;
     $this->parentQuery = $parentQuery;
     parent::__construct($parentQuery->getConnection(), $parentQuery->getGrammar(), $parentQuery->getProcessor());
 }
开发者ID:delatbabel,项目名称:framework,代码行数:15,代码来源:JoinClause.php

示例2: __construct

 /**
  * Create a new join clause instance.
  *
  * @param  \Illuminate\Database\Query\Builder $parentQuery
  * @param  string  $type
  * @param  string  $table
  * @return void
  */
 public function __construct(Builder $parentQuery, $type, $table)
 {
     $this->type = $type;
     $this->table = $table;
     $this->parentQuery = $parentQuery;
     parent::__construct($parentQuery->connection, $parentQuery->grammar, $parentQuery->processor);
 }
开发者ID:davidhemphill,项目名称:framework,代码行数:15,代码来源:JoinClause.php

示例3: __construct

 /**
  * @param Repository $cache
  * @param ConnectionInterface $connection
  * @param Grammar $grammar
  * @param Processor $processor
  * @param $cacheTag
  */
 public function __construct(Repository $cache, ConnectionInterface $connection, Grammar $grammar, Processor $processor, $cacheTag)
 {
     $this->cache = $cache;
     $this->cacheTag = $cacheTag;
     // Get cache life time from config file
     // Default set to 5 minutes
     // This lifetime used in time aware queries
     $this->cacheLifeTime = config('infinity-cache.lifeTime', 5);
     parent::__construct($connection, $grammar, $processor);
 }
开发者ID:emtudo,项目名称:InfinityCache,代码行数:17,代码来源:Builder.php

示例4: __construct

 /**
  * Create a new query builder instance.
  *
  * @param  \Illuminate\Database\ConnectionInterface $connection
  * @param  \Illuminate\Database\Query\Grammars\Grammar $grammar
  * @param  \Illuminate\Database\Query\Processors\Processor $processor
  * @param  array $config
  * @return \Lavender\Database\QueryBuilder
  */
 public function __construct(ConnectionInterface $connection, Grammar $grammar, Processor $processor, array $config = [])
 {
     $this->config = $config;
     parent::__construct($connection, $grammar, $processor);
 }
开发者ID:master0mind,项目名称:Lavender,代码行数:14,代码来源:QueryBuilder.php

示例5: __construct

 /**
  * Create a new query builder instance.
  *
  * @param  \Illuminate\Database\ConnectionInterface  $connection
  * @param  \Illuminate\Database\Query\Grammars\Grammar  $grammar
  * @param  \Illuminate\Database\Query\Processors\Processor  $processor
  * @return void
  */
 public function __construct(\Illuminate\Database\ConnectionInterface $connection, \Illuminate\Database\Query\Grammars\Grammar $grammar, \Illuminate\Database\Query\Processors\Processor $processor)
 {
     parent::__construct($connection, $grammar, $processor);
     $this->fmConnection = $this->getFMConnection();
 }
开发者ID:lakinmohapatra,项目名称:laravelTest,代码行数:13,代码来源:Builder.php

示例6: __construct

 /**
  * Create a new query builder instance.
  *
  * @param  ConnectionInterface $connection
  * @param  Grammar             $grammar
  * @param  Processor           $processor
  * @param  QueryHandler        $handler
  */
 public function __construct(ConnectionInterface $connection, Grammar $grammar, Processor $processor, QueryHandler $handler)
 {
     parent::__construct($connection, $grammar, $processor);
     $this->handler = $handler;
 }
开发者ID:spiritix,项目名称:lada-cache,代码行数:13,代码来源:QueryBuilder.php

示例7: __construct

 /**
  * @param ConnectionInterface $connection
  * @param OracleGrammar $grammar
  * @param OracleProcessor $processor
  */
 public function __construct(ConnectionInterface $connection, OracleGrammar $grammar, OracleProcessor $processor)
 {
     parent::__construct($connection, $grammar, $processor);
 }
开发者ID:hadimazalan,项目名称:laravel-oci8,代码行数:9,代码来源:OracleBuilder.php

示例8: __construct

 /**
  * @param Repository $cache
  * @param ConnectionInterface $connection
  * @param Grammar $grammar
  * @param Processor $processor
  * @param $cacheTag
  */
 public function __construct(Repository $cache, ConnectionInterface $connection, Grammar $grammar, Processor $processor, $cacheTag)
 {
     $this->cache = $cache;
     parent::__construct($connection, $grammar, $processor);
     $this->cacheTag = $cacheTag;
 }
开发者ID:bedemiralp,项目名称:InfinityCache,代码行数:13,代码来源:Builder.php


注:本文中的Illuminate\Database\Query\Builder::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。