Example #1
0
 /**
  * OptionControl constructor
  *
  * @param string $value
  * @param AElement[]|AElement|string|array $content
  */
 public function __construct($value, $content = null)
 {
     parent::__construct(self::SIGN, null);
     $this->setValue($value);
     $this->addContent($content);
     return $this;
 }
Example #2
0
 /**
  * AInputControll constructor
  *
  * @param string $type Typ input kontrolky
  * @param string $name Jméno kontrolky
  * @param AElement|string|null $label Popisek
  */
 public function __construct($type, $name, $label = null)
 {
     parent::__construct(self::SIGN, $name, $label);
     $this->addAttribute(new KeyPairValue('type', $type));
     $this->pair = false;
     return $this;
 }
Example #3
0
 /**
  * SelectControl constructor
  *
  * @param string $name
  * @param $items OptionControl[]|OptionControl|string[]
  * @param AElement|string|null $label
  */
 public function __construct($name, $items, $label = null)
 {
     parent::__construct(self::SIGN, $name, $label);
     $this->items = $items;
 }
Example #4
0
 /**
  * TextAreaControl constructor
  *
  * @param string|null $label Text v labelu
  */
 public function __construct($label = null)
 {
     parent::__construct(self::SIGN, null);
     $this->addContent($label);
     return $this;
 }
 /**
  * TextAreaControl constructor
  *
  * @param string $name Název kontrolky
  * @param AElement|string|null $label Popisek
  */
 public function __construct($name, $label = null)
 {
     return parent::__construct(self::SIGN, $name, $label);
 }