src/Controller/Base.php
public static function viewData(
        $data,
        $links = null,
        $meta = null,
        $included = null
    ) {
        $viewParameters = new \stdClass();

        if ($links) {
            $viewParameters->links = $links;
        }

        $viewParameters->data = $data;

        if ($included !== null) {
            $viewParameters->included = $included;
        }

        if ($meta) {
            $viewParameters->meta = $meta;
        }

        \Phramework\Phramework::view($viewParameters);

        unset($viewParameters);

        return true;
    }
public static function viewData(
        $data,
        $links = null,
        $meta = null,
        $included = null
    ) {
        $viewParameters = new \stdClass();

        if ($links) {
            $viewParameters->links = $links;
        }

        $viewParameters->data = $data;

        if ($included !== null) {
            $viewParameters->included = $included;
        }

        if ($meta) {
            $viewParameters->meta = $meta;
        }

        \Phramework\Phramework::view($viewParameters);

        unset($viewParameters);

        return true;
    }
public static function viewData ( $ data , $ links = null , $ meta = null , $ included = null ) { $ viewParameters = new \ stdClass ( ) ; if ( $ links ) { $ viewParameters -> links = $ links ; } $ viewParameters -> data = $ data ; if ( $ included !== null ) { $ viewParameters -> included = $ included ; } if ( $ meta ) { $ viewParameters -> meta = $ meta ; } \ Phramework \ Phramework :: view ( $ viewParameters ) ; unset ( $ viewParameters ) ; return true ; }
View JSONAPI data
@param object $data
@uses \Phramework\Viewers\JSONAPI
@return boolean
View JSONAPI data