public function __construct($pracerepository, $fakturarepository, $typrepository) { parent::__construct(); $this->praceRepository = $pracerepository; $this->fakturaRepository = $fakturarepository; $this->typRepository = $typrepository; }
public function __construct(\Nette\Database\Table\Selection $selection, \HQ\Model\Entity\ProjectEntity $projectEntity, \HQ\Model\Entity\LstErrorStatus $lstErrorStatus, \HQ\Model\Entity\ErrorEntity $errorEntity) { parent::__construct(); $this->selection = $selection; $this->projectEntity = $projectEntity; $this->lstErrorStatus = $lstErrorStatus; $this->errorEntity = $errorEntity; }
/** * @param int $numOfResults * @return Column * @throws NiftyGrid\InvalidFilterException * @throws NiftyGrid\UnknownFilterException */ public function setAutocomplete($numOfResults = 10) { if (empty($this->filterType)) { throw new NiftyGrid\UnknownFilterException("Autocomplete can't be used without filter."); } elseif ($this->filterType != FilterCondition::TEXT) { throw new NiftyGrid\InvalidFilterException("Autocomplete can be used only with Text filter."); } $this->parent['gridForm'][$this->parent->name]['filter'][$this->name]->getControlPrototype()->addClass("grid-autocomplete")->addData("column", $this->name)->addData("gridName", $this->parent->getGridPath())->addData("link", $this->parent->link("autocomplete!")); $this->autocomplete = TRUE; $this->autocompleteResults = $numOfResults; return $this; }
public function __construct($articles) { parent::__construct(); $this->articles = $articles; }
public function __construct($firmarepository) { parent::__construct(); $this->firmaRepository = $firmarepository; }