public function __construct($name = null, $title = null) { parent::__construct(self::$_TAGNAME, $name, $title); $this->_params['type'] = self::$_TYPE; $this->set_use_name_id(false); $this->add_class('file-input'); }
public function __construct($name = null, $title = null, $value = null, $checked = false) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->_params['type'] = self::$_TYPE; $this->add_class(self::$_CLASS); $this->set_checked($checked); $this->get_container()->add_class(self::$_CONTAINER_CLASS); }
public function __construct($name = null, $title = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->_params['type'] = self::$_TYPE; $this->add_class(self::$_CLASS); $this->get_container()->add_class(self::$_CONTAINER_CLASS); $this->set_mask_placeholder(self::$_DEFAULT_MASK_PLACEHOLDER); }
public function __construct($name = null, $title = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->add_class(self::$_CLASS); $this->get_container()->add_class(self::$_CONTAINER_CLASS); }
/** * * @return $this * */ public function add_input(HTMLInputControl $input) { $this->_inputs[] = $input; if (!$input->get_id()) { $input->set_random_id(); } $replace = self::_get_input_replacement($input); $this->_content .= $replace; return $this; }
/** * * @return $this * */ public function set_value($value) { if ($value) { $this->_date_value = Date::parse($value); } else { $this->_date_value = null; } return parent::set_value($value); }
/** * * @return $this * */ public function set_value($value) { if (is_array($value)) { if (array_key_exists('value', $value)) { $value = $value['value']; } else { $value = null; } } if ($value && $value instanceof \ZPHP\OptionItem) { $value = $value->get_option_item_value(); } if ($value instanceof Model) { $value = $value->{self::$_ELOQUENT_VALUE_FIELD}; } if ($value && $value instanceof OptionItem) { $value = $value->get_option_item_value(); } return parent::set_value($value); }
/** * * @return $this * */ public function set_value($value) { $value = $this->_parse_value($value); return parent::set_value($value); }
public function __construct($name = null, $title = null, $url = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->_params['type'] = self::$_TYPE; $this->get_container()->add_class(self::$_CONTAINER_CLASS); $this->set_request_url($url); $this->set_request_method(self::$_DEFAULT_SEARCH_METHOD); $this->set_min_length(self::$_DEFAULT_MIN_LENGTH); $this->set_search_varname(self::$_DEFAULT_SEARCH_VARNAME); $this->set_id_varname(self::$_DEFAULT_ID_VARNAME); $this->set_width(self::$_DEFAULT_WIDTH); $this->set_allow_clear(self::$_DEFAULT_ALLOW_CLEAR); }
public function __construct($name = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, '', $value); $this->_params['type'] = self::$_TYPE; $this->set_use_name_id(false); }
/** * * @return $this * */ public function set_value($value) { $this->_selected_values = array(); if (is_array($value)) { $this->set_checked_array($value); } else { $this->set_checked($value); } parent::set_value($this->_selected_values); return $this; }