當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。