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, $options = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->add_class(self::$_CLASS); $this->get_container()->add_class(self::$_CONTAINER_CLASS); $this->add_options($options); }
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, $options = null, $value = null) { parent::__construct(self::$_TAGNAME, $name, $title, $value); $this->add_class(self::$_CLASS); $this->get_container()->add_class(self::$_CONTAINER_CLASS); $this->add_options($options); $this->set_columns(self::$_DEFAULT_COLUMNS); $this->set_sort_type(self::$_DEFAULT_SORT_TYPE); }
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_clear_button(self::$_DEFAULT_CLEAR_BUTTON); $this->_date_mask = String::get('date_mask'); if (!$this->_date_mask) { $this->_date_mask = self::$_DEFAULT_DATE_MASK; } $this->_date_mask = self::_prepare_format($this->_date_mask); $this->_date_format = String::get('date_format'); if (!$this->_date_format) { $this->_date_format = self::$_DEFAULT_DATE_FORMAT; } $this->_date_format = self::_prepare_format($this->_date_format); if (self::$_DEFAULT_VALUE_NOW && !$value) { $this->set_value(Date::now()); } }
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); }