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


PHP Selection::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($name, Selection $refTable, $column)
 {
     parent::__construct($name, $refTable->connection);
     $this->refTable = $refTable;
     $this->column = $column;
     $this->delimitedColumn = $this->connection->getSupplementalDriver()->delimite($this->column);
 }
开发者ID:JanVoracek,项目名称:nette,代码行数:7,代码来源:GroupedSelection.php

示例2: __construct

 /**
  * @param  string
  * @param  IModelManager
  */
 public function __construct($table, IModelManager $manager)
 {
     if (NETTE_VERSION_ID >= 20100) {
         parent::__construct($manager->getConnection(), $table, $manager->getDatabaseReflection(), $manager->getCacheStorage());
     } else {
         parent::__construct($table, $manager->getConnection());
     }
     $this->manager = $manager;
 }
开发者ID:fabik,项目名称:database,代码行数:13,代码来源:Selection.php

示例3: __construct

 public function __construct(Connection $connection, \Nette\DI\Container $context, \Nette\Database\IReflection $reflection)
 {
     parent::__construct($connection, 'event_time', $reflection);
     $this->select('event_time.*');
     $this->select('DATEDIFF(event_time.date_from, CURDATE()) AS diff_date_from');
     $this->select('DATEDIFF(event_time.date_to, CURDATE()) AS diff_date_to');
     $this->select('DATEDIFF(event_time.date_to, event_time.date_from) AS diff_dates');
     $this->context = $context;
 }
开发者ID:soundake,项目名称:pd,代码行数:9,代码来源:EventsTerms.php

示例4: __construct

 public function __construct(Connection $connection, \Nette\DI\Container $context, \Nette\Database\IReflection $reflection, \Nette\Caching\Cache $cache)
 {
     parent::__construct($connection, 'event_time_all', $reflection);
     $this->context = $context;
     $this->cache = $cache;
     $this->select('event_time_all.*');
     $this->select('DATEDIFF(event_time.date_from, CURDATE()) AS diff_date_from');
     $this->select('DATEDIFF(event_time.date_to, CURDATE()) AS diff_date_to');
     $this->select('DATEDIFF(event_time.date_to, event_time.date_from) AS diff_dates');
     $this->select('event_time.event.visible');
     $this->select('event_time.event.approved');
     $this->select('event_time.event_id');
 }
开发者ID:soundake,项目名称:pd,代码行数:13,代码来源:EventsTimes.php

示例5: __construct

 public function __construct(\Nette\Database\Context $database)
 {
     parent::__construct($database, $database->getConventions(), $this->table);
     $this->db = $database;
 }
开发者ID:vladimirslevercz,项目名称:alena,代码行数:5,代码来源:Sale.php

示例6: __construct

 public function __construct(Connection $connection, \Nette\DI\Container $context, \Nette\Database\IReflection $reflection)
 {
     parent::__construct($connection, 'page', $reflection);
     $this->context = $context;
 }
开发者ID:soundake,项目名称:pd,代码行数:5,代码来源:Pages.php

示例7: __construct

 /**
  * Creates filtered and grouped table representation.
  * @param  Selection  $refTable
  * @param  string  database table name
  * @param  string  joining column
  */
 public function __construct(Selection $refTable, $table, $column)
 {
     parent::__construct($table, $refTable->connection);
     $this->refTable = $refTable;
     $this->column = $column;
 }
开发者ID:BroukPytlik,项目名称:agility,代码行数:12,代码来源:GroupedSelection.php

示例8: __construct

 /**
  * Creates filtered and grouped table representation.
  * @param  Context
  * @param  IConventions
  * @param  string  database table name
  * @param  string  joining column
  * @param  Selection
  * @param  Nette\Caching\IStorage|NULL
  */
 public function __construct(Context $context, IConventions $conventions, $tableName, $column, Selection $refTable, Nette\Caching\IStorage $cacheStorage = NULL)
 {
     $this->refTable = $refTable;
     $this->column = $column;
     parent::__construct($context, $conventions, $tableName, $cacheStorage);
 }
开发者ID:luminousinfoways,项目名称:pccfoas,代码行数:15,代码来源:GroupedSelection.php

示例9: __construct

 public function __construct($name, Selection $refTable, $column)
 {
     parent::__construct($name, $refTable->connection);
     $this->refTable = $refTable;
     $this->through($column);
 }
开发者ID:bazo,项目名称:Tatami,代码行数:6,代码来源:GroupedSelection.php

示例10: __construct

 public function __construct(Connection $connection, \Nette\DI\Container $context, \Nette\Database\IReflection $reflection)
 {
     parent::__construct($connection, 'shire', $reflection);
 }
开发者ID:soundake,项目名称:pd,代码行数:4,代码来源:Shires.php

示例11: __construct

 /**
  * Creates filtered and grouped table representation.
  * @param  Selection  $refTable
  * @param  string  database table name
  * @param  string  joining column
  */
 public function __construct(Selection $refTable, $table, $column)
 {
     $this->refTable = $refTable;
     $this->column = $column;
     parent::__construct($refTable->connection, $table, $refTable->reflection, $refTable->cache ? $refTable->cache->getStorage() : NULL);
 }
开发者ID:cujan,项目名称:atlashornin,代码行数:12,代码来源:GroupedSelection.php

示例12:

Selection{protected$refTable;protected$column;protected$delimitedColumn;protected$active;protected$referencing;protected$aggregation=array();function
__construct($name,Selection$refTable,$column){parent::__construct($name,$refTable->connection);$this->refTable=$refTable;$this->column=$column;$this->delimitedColumn=$this->connection->getSupplementalDriver()->delimite($this->column);}function
开发者ID:JanTvrdik,项目名称:NetteExtras,代码行数:2,代码来源:loader.php

示例13: __construct

 public function __construct(Connection $connection, \Nette\DI\Container $context, \Nette\Database\IReflection $reflection, Nette\Caching\IStorage $cacheStorage)
 {
     parent::__construct($connection, 'event', $reflection, $cacheStorage);
     $this->context = $context;
 }
开发者ID:soundake,项目名称:pd,代码行数:5,代码来源:Events.php

示例14: __construct

 public function __construct($table, Nette\Database\Context $context)
 {
     parent::__construct($context->getConnection(), $table, $context->getDatabaseReflection());
 }
开发者ID:dansilovsky,项目名称:calendar,代码行数:4,代码来源:Repository.php


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