/** * Get main attrs * @param array $attrs * @return array */ protected function _getAttrs(array $attrs) { $attrs = parent::_getAttrs($attrs); $attrs['maxlength'] = '255'; $attrs['size'] = '60'; $attrs = $this->_addPlaceholder($attrs); return $attrs; }
/** * @param string $identifier * @param array|string $value * @param array $params * @param array $attrs */ public function __construct($identifier, $value, array $params, array $attrs) { parent::__construct($identifier, $value, $params, $attrs); $this->_element = $this->app->jbfilter->getElement($this->_identifier); }
/** * Get values * @param null $type * @return array */ protected function _getValues($type = null) { return parent::_getValues('db'); }
/** * @param $value * @return mixed */ protected function _getElementValue($value) { if ($this->_isValueEmpty($value)) { $value = $this->app->jbrequest->getSystem('category'); } return parent::_getElementValue($value); }