public function performMappingOnObject(DataObject $object)
    {
        //By default, we already have our data mapped in the object (hopefully properly)
        //But we do need to convert things that may need converting
        foreach ($this->mapping as $field => $variable) {
            $modifier = false;
            $newField = $variable;

            if (strpos($variable, ':') !== false) {
                list($newField, $modifier) = explode(':', $variable);
                $object->$newField = $this->getMappedValue($object, $newField, $variable);
            }
        }
    }
public function performMappingOnObject(DataObject $object)
    {
        //By default, we already have our data mapped in the object (hopefully properly)
        //But we do need to convert things that may need converting
        foreach ($this->mapping as $field => $variable) {
            $modifier = false;
            $newField = $variable;

            if (strpos($variable, ':') !== false) {
                list($newField, $modifier) = explode(':', $variable);
                $object->$newField = $this->getMappedValue($object, $newField, $variable);
            }
        }
    }
public function performMappingOnObject ( DataObject $ object ) { //By default, we already have our data mapped in the object (hopefully properly) //But we do need to convert things that may need converting foreach ( $ this -> mapping as $ field => $ variable ) { $ modifier = false ; $ newField = $ variable ; if ( strpos ( $ variable , ':' ) !== false ) { list ( $ newField , $ modifier ) = explode ( ':' , $ variable ) ; $ object -> $ newField = $ this -> getMappedValue ( $ object , $ newField , $ variable ) ; } } }
Array walk function, overridable

The response object will automatically try to fire this when pulling a list of automapped objects.

@param DataObject $Object
Array walk function overridable