Example #1
0
 public function __construct($pracerepository, $fakturarepository, $typrepository)
 {
     parent::__construct();
     $this->praceRepository = $pracerepository;
     $this->fakturaRepository = $fakturarepository;
     $this->typRepository = $typrepository;
 }
Example #2
0
 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;
 }
Example #3
0
 /**
  * @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;
 }
Example #4
0
 public function __construct($articles)
 {
     parent::__construct();
     $this->articles = $articles;
 }
Example #5
0
 public function __construct($firmarepository)
 {
     parent::__construct();
     $this->firmaRepository = $firmarepository;
 }