__construct() public method

Creates filtered and grouped table representation.
public __construct ( Context $context, Nette\Database\IConventions $conventions, $tableName, $column, Selection $refTable, Nette\Caching\IStorage $cacheStorage = NULL )
$context Nette\Database\Context
$conventions Nette\Database\IConventions
$refTable Selection
$cacheStorage Nette\Caching\IStorage
示例#1
0
 /**
  * @param  \Nette\Database\Table\Selection
  * @param  string
  * @param  string
  */
 public function __construct(\Nette\Database\Table\Selection $refTable, $name, $column)
 {
     parent::__construct($refTable, $name, $column);
     if (!$refTable instanceof IModelManagerAccessor) {
         throw new InvalidArgumentException('Argument $refTable must be IModelManagerAccessor descendant.');
     }
     $this->manager = $this->refTable->getModelManager();
 }