public function getData()
    {
        $data = [];

        foreach (static::$_classFields[get_called_class()] as $field => $options) {
            $data[$field] = $this->_getFieldValue($field);
        }

        if ($this->validationErrors) {
            $data['validationErrors'] = $this->validationErrors;
        }

        return $data;
    }
public function getData()
    {
        $data = [];

        foreach (static::$_classFields[get_called_class()] as $field => $options) {
            $data[$field] = $this->_getFieldValue($field);
        }

        if ($this->validationErrors) {
            $data['validationErrors'] = $this->validationErrors;
        }

        return $data;
    }
public function getData ( ) { $ data = [ ] ; foreach ( static :: $ _classFields [ get_called_class ( ) ] as $ field => $ options ) { $ data [ $ field ] = $ this -> _getFieldValue ( $ field ) ; } if ( $ this -> validationErrors ) { $ data [ 'validationErrors' ] = $ this -> validationErrors ; } return $ data ; }
Gets normalized object data.

@return array The model's data as a normal array with any validation errors included.
Gets normalized object data .