예제 #1
0
 /**
  * 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;
     }
 }
예제 #2
0
 /**
  * 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;
     }
 }