/**
  * @return array
  */
 public function getAttributes()
 {
     $maxLength = $this->getMaxLength();
     $attributes = array();
     if ($maxLength) {
         $attributes['maxLength'] = $maxLength;
         $attributes['size'] = min($maxLength, 30);
     }
     return array_merge(parent::getAttributes(), $attributes);
 }
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('type' => 'file'));
 }
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('type' => null, 'value' => null));
 }
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('tabindex' => null, 'type' => null, 'value' => null, 'title' => $this->tag == 'fieldset' ? null : $this->legend));
 }
 /**
  * {@inheritdoc}
  */
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('data-url' => $this->Link()));
 }
 public function getAttributes()
 {
     $type = isset($this->attributes['src']) ? 'image' : 'submit';
     return array_merge(parent::getAttributes(), array('disabled' => $this->isReadonly() || $this->isDisabled(), 'value' => $this->Title(), 'type' => $type, 'title' => $this->useButtonTag ? $this->description : null));
 }
 public function testUpdateAttributes()
 {
     $field = new FormField('MyField');
     $this->assertArrayHasKey('extended', $field->getAttributes());
 }