/** * pridana logika default volby zaskrtavani */ public function __construct($name = "", $label = "", $default = "") { try { parent::__construct($name, $label, (bool) $default ? "1" : "0"); } catch (Exception $e) { throw $e; } }
/** * doplneno o parametr length */ public function __construct($name = "", $label = "", $default = "", $lengthMax = NULL) { try { if ($lengthMax && !is_numeric($lengthMax)) { throw new LBoxExceptionFormControl(LBoxExceptionFormControl::MSG_PARAM_INT, LBoxExceptionFormControl::CODE_BAD_PARAM); } $this->lengthMax = $lengthMax; parent::__construct($name, $label, $default); } catch (Exception $e) { throw $e; } }