__construct() public method

public __construct ( )
Esempio n. 1
0
File: Form.php Progetto: venne/venne
 /**
  * @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;
 }
Esempio n. 2
0
 public function __construct(string $view, array $templates, string $class)
 {
     parent::__construct();
     $this->view = $view;
     $this->templates = $templates;
     $this->class = $class;
 }
Esempio n. 3
0
 /**
  * @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;
 }
Esempio n. 4
0
 /**
  * @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);
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 /**
  * @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);
 }
Esempio n. 7
0
 /**
  * @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);
 }
Esempio n. 8
0
File: Action.php Progetto: lohini/cf
 /**
  * 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;
 }
Esempio n. 9
0
 /**
  * @param string $name 
  */
 public function __construct($parent, $name)
 {
     parent::__construct();
     $this->caption = $name;
     $this->setParent($parent);
 }
Esempio n. 10
0
 /**
  * @param string $label
  */
 public function __construct($label)
 {
     parent::__construct();
     $this->label = $label;
     $this->control = Html::el('a');
 }
Esempio n. 11
0
 /**
  * @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;
 }
Esempio n. 12
0
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
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 14
0
 /**
  * @param IColumn $column
  */
 public function __construct(IColumn $column)
 {
     parent::__construct();
     $this->column = $column;
 }