コード例 #1
0
ファイル: Grid.php プロジェクト: v6ak/Gridito
 public function __construct()
 {
     // intentionally without parameters
     parent::__construct();
     $this->addComponent(new ComponentContainer(), "toolbar");
     $this->addComponent(new ComponentContainer(), "actions");
     $this->addComponent(new ComponentContainer(), "columns");
 }
コード例 #2
0
ファイル: Grid.php プロジェクト: janmarek/Neuron
 public function __construct(\Nette\IComponentContainer $parent = null, $name = null)
 {
     parent::__construct($parent, $name);
     $this->addComponent(new ComponentContainer(), "toolbar");
     $this->addComponent(new ComponentContainer(), "actions");
     $this->addComponent(new ComponentContainer(), "columns");
     $this->paginator = new Paginator();
     $this->paginator->setItemsPerPage($this->defaultItemsPerPage);
 }
コード例 #3
0
ファイル: BaseControl.php プロジェクト: janmarek/Neuron
 public function __construct(\Nette\IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->init();
 }