Example #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;
 }
Example #2
0
 /**
  * Get name
  * @param string $key
  * @param  bool  $postFix
  * @return string
  */
 protected function _getName($key = null, $postFix = null)
 {
     return parent::_getName() . '[' . $key . ']' . ($postFix !== null ? '[' . $postFix . ']' : null);
 }