protected function formatJSON()
    {
        $result = new \stdClass;

        if ($this->outputMode == self::MODE_ERROR) {
            $this->formatFailure($result);
        } else {
            $this->formatSuccess($result);
        }

        // only include if it has valid data
        if ($this->meta) {
            $result->meta = $this->meta;
        }

        return $result;
    }
protected function formatJSON()
    {
        $result = new \stdClass;

        if ($this->outputMode == self::MODE_ERROR) {
            $this->formatFailure($result);
        } else {
            $this->formatSuccess($result);
        }

        // only include if it has valid data
        if ($this->meta) {
            $result->meta = $this->meta;
        }

        return $result;
    }
protected function formatJSON ( ) { $ result = new \ stdClass ; if ( $ this -> outputMode == self :: MODE_ERROR ) { $ this -> formatFailure ( $ result ) ; } else { $ this -> formatSuccess ( $ result ) ; } // only include if it has valid data if ( $ this -> meta ) { $ result -> meta = $ this -> meta ; } return $ result ; }
will convert the intermediate data result data into ActiveModel compatible result object

@return \stdClass
@throws HTTPException
will convert the intermediate data result data into ActiveModel compatible result object