FOF30\Model\DataModel::databaseDataToRecordData PHP Method

databaseDataToRecordData() public method

Applies the getSomethingAttribute methods to $this->recordData, converting the database representation of the data to the record representation. $this->recordData is directly modified.
public databaseDataToRecordData ( ) : void
return void
    public function databaseDataToRecordData()
    {
        foreach ($this->recordData as $name => $value) {
            $method = $this->container->inflector->camelize('get_' . $name . '_attribute');
            if (method_exists($this, $method)) {
                $this->recordData[$name] = $this->{$method}($value);
            }
        }
    }