src/Framework/Form/AspiForm.php
public function setAttribute($a, $v)
    {
        parent::setAttribute($a, $v);
        if ($a == 'id') {
            foreach ($this->fieldsets as $i => $fieldset) {
                $id = $v . '-fieldset-' . ($i + 1);
                $fieldset->setAttribute('id', $id);
            }
        } else if ($a == 'class') {
            foreach ($this->fieldsets as $i => $fieldset) {
                $class = $v . '-fieldset';
                $fieldset->setAttribute('class', $class);
            }
        }
        return $this;
    }
public function setAttribute($a, $v)
    {
        parent::setAttribute($a, $v);
        if ($a == 'id') {
            foreach ($this->fieldsets as $i => $fieldset) {
                $id = $v . '-fieldset-' . ($i + 1);
                $fieldset->setAttribute('id', $id);
            }
        } else if ($a == 'class') {
            foreach ($this->fieldsets as $i => $fieldset) {
                $class = $v . '-fieldset';
                $fieldset->setAttribute('class', $class);
            }
        }
        return $this;
    }
public function setAttribute ( $ a , $ v ) { parent :: setAttribute ( $ a , $ v ) ; if ( $ a == 'id' ) { foreach ( $ this -> fieldsets as $ i => $ fieldset ) { $ id = $ v . '-fieldset-' . ( $ i + 1 ) ; $ fieldset -> setAttribute ( 'id' , $ id ) ; } } else if ( $ a == 'class' ) { foreach ( $ this -> fieldsets as $ i => $ fieldset ) { $ class = $ v . '-fieldset' ; $ fieldset -> setAttribute ( 'class' , $ class ) ; } } return $ this ; }
Method to set an attribute

@param  string $a
@param  string $v
@return Form
Method to set an attribute