本文整理汇总了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());
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例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);
}
示例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;
}