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