/**
  * Manipulates the name attribute
  * 
  * @return array
  */
 public function getAttributes()
 {
     $name = $this->getName();
     if (strpos($name, ']') == strlen($name) - 1) {
         $newName = str_replace(']', '-orig]', $name);
     } else {
         $newName = $name . '-orig';
     }
     return array_merge(parent::getAttributes(), array('name' => $newName));
 }
Esempio n. 2
0
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('multiple' => $this->multiple, 'size' => $this->size));
 }
 /**
  * {@inheritdoc}
  */
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('name' => $this->getName() . '[]'));
 }
Esempio n. 4
0
 public function getAttributes()
 {
     $attributes = parent::getAttributes();
     unset($attributes['name']);
     unset($attributes['required']);
     unset($attributes['role']);
     return $attributes;
 }