/** * @param \Venne\Forms\IFormFactory|\Closure $factory * @param string $title * @param null $type */ public function __construct($factory, $title, $type = null) { parent::__construct(); $this->factory = $factory; $this->title = $title; $this->type = $type; }
public function __construct(string $view, array $templates, string $class) { parent::__construct(); $this->view = $view; $this->templates = $templates; $this->class = $class; }
/** * @param \Venne\Forms\FormFactory $factory * @param string $title * @param callable $entityFactory * @param null $type */ public function __construct(\Venne\Forms\FormFactory $factory, $title, $entityFactory = NULL, $type = NULL) { parent::__construct(); $this->factory = $factory; $this->title = $title; $this->entityFactory = $entityFactory; $this->type = $type; }
/** * @param string caption */ public function __construct($caption = NULL) { $this->monitor('Nette\\Forms\\Form'); parent::__construct(); $this->control = Html::el('input'); $this->label = Html::el('label'); $this->caption = $caption; $this->rules = new Nette\Forms\Rules($this); }
public function __construct($name, $label) { $this->monitor('Drahak\\Tables\\Table'); parent::__construct(NULL, $name); $this->cellPrototype = Html::el('td'); $this->labelPrototype = Html::el('th'); $this->labelPrototype->add(Html::el('a', $label)); $this->column = $name; }
/** * @param string caption */ public function __construct($caption = NULL) { $this->monitor('Nette\\Forms\\Form'); parent::__construct(); $this->control = Html::el('input', array('type' => NULL, 'name' => NULL)); $this->label = Html::el('label'); $this->caption = $caption; $this->rules = new Nette\Forms\Rules($this); $this->setValue(NULL); }
/** * @param string caption */ public function __construct($caption = NULL) { $this->monitor(Form::class); parent::__construct(); $this->control = Html::el('input', ['type' => NULL, 'name' => NULL]); $this->label = Html::el('label'); $this->caption = $caption; $this->rules = new Rules($this); if (self::$autoOptional) { $this->setRequired(FALSE); } $this->setValue(NULL); }
/** * Data grid action constructor * * @note for full ajax support, destination should not change module, * @note presenter or action and must be ended with exclamation mark (!) * * @param string $title textual title * @param string $destination textual link destination * @param \Nette\Utils\Html $icon element which is added to a generated link * @param bool use ajax? (add class self::$ajaxClass into generated link) * @param mixed generate link with argument? (if yes you can specify name of parameter * otherwise variable DataGrid\DataGrid::$keyName will be used and must be defined) */ public function __construct($title, $destination, Html $icon = NULL, $useAjax = FALSE, $key = self::WITH_KEY) { parent::__construct(); $this->destination = $destination; $this->key = $key; $a = Html::el('a')->title($title); if ($useAjax) { $a->addClass(self::$ajaxClass); } if ($icon !== NULL && $icon instanceof Html) { $a->add($icon); } else { $a->setText($title); } $this->html = $a; }
/** * @param string $name */ public function __construct($parent, $name) { parent::__construct(); $this->caption = $name; $this->setParent($parent); }
/** * @param string $label */ public function __construct($label) { parent::__construct(); $this->label = $label; $this->control = Html::el('a'); }
/** * @param TableControl $table * @param string $title * @param null $width * @param null $callback */ public function __construct(TableControl $table, $name, $title) { parent::__construct($table, $name); $this->table = $table; $this->title = $title; }
static$idMask='frm%s-%s';public$caption;protected$value;protected$control;protected$label;private$errors=array();private$disabled=FALSE;private$htmlId;private$htmlName;private$rules;private$translator=TRUE;private$options=array();function __construct($caption=NULL){$this->monitor('Nette\Forms\Form');parent::__construct();$this->control=Html::el('input');$this->label=Html::el('label');$this->caption=$caption;$this->rules=new Nette\Forms\Rules($this);}protected
public function __construct() { parent::__construct(); }
/** * @param IColumn $column */ public function __construct(IColumn $column) { parent::__construct(); $this->column = $column; }