library/Garp/Spawn/Fields.php
public function alter($name, $prop, $value) {
        foreach ($this->_fields as &$field) {
            if ($field->name === $name) {
                $field->{$prop} = $value;
            }
        }
    }
public function alter($name, $prop, $value) {
        foreach ($this->_fields as &$field) {
            if ($field->name === $name) {
                $field->{$prop} = $value;
            }
        }
    }
public function alter ( $ name , $ prop , $ value ) { foreach ( $ this -> _fields as & $ field ) { if ( $ field -> name === $ name ) { $ field -> { $ prop } = $ value ; } } }
Alter a field in the fields registry.
@param String $name Field name.
@param String $prop Field property name, f.i. 'type'
@param Mixed $value The new field value
Alter a field in the fields registry .