Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * @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);
 }
Пример #3
0
 /**
  * Get values
  * @param null $type
  * @return array
  */
 protected function _getValues($type = null)
 {
     return parent::_getValues('db');
 }
Пример #4
0
 /**
  * @param $value
  * @return mixed
  */
 protected function _getElementValue($value)
 {
     if ($this->_isValueEmpty($value)) {
         $value = $this->app->jbrequest->getSystem('category');
     }
     return parent::_getElementValue($value);
 }