Пример #1
0
 /**
  * Class constructor
  *
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $elementLabel   (optional)Input field label
  * @param     string    $text           (optional)Text to put after the checkbox
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string
  *                                      or an associative array
  * @param     mixed     $values         (optional)Values to pass if checked or not checked
  *
  * @since     1.0
  * @access    public
  * @return    void
  */
 function __construct($elementName = null, $elementLabel = null, $text = null, $attributes = null, $values = null)
 {
     parent::__construct($elementName, $elementLabel, $text, $attributes);
     $this->setValues($values);
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param string $elementName (optional) name of the checkbox
  * @param string $elementLabel (optional) checkbox label
  * @param string $text (optional) Text to put after the checkbox
  * @param mixed $attributes (optional) Either a typical HTML attribute string
  *              or an associative array
  */
 public function __construct($elementName = null, $elementLabel = null, $text = '', $attributes = null)
 {
     parent::__construct($elementName, $elementLabel, $text, $attributes);
 }