src/Label305/Auja/Menu/Resource.php
public function aujaSerialize() {
        $result = array();

        $result['type'] = $this->getType();
        $result[$this->getType()] = $this->basicSerialize();

        if ($this->nextPageUrl != null || $this->totalPageUrl != null) {
            $result['paging'] = array();
            if ($this->nextPageUrl != null) {
                $result['paging']['next'] = $this->nextPageUrl;
            }
            if ($this->totalPageUrl != null) {
                $result['paging']['total'] = $this->totalPageUrl;
            }
        }

        return $result;
    }
public function aujaSerialize() {
        $result = array();

        $result['type'] = $this->getType();
        $result[$this->getType()] = $this->basicSerialize();

        if ($this->nextPageUrl != null || $this->totalPageUrl != null) {
            $result['paging'] = array();
            if ($this->nextPageUrl != null) {
                $result['paging']['next'] = $this->nextPageUrl;
            }
            if ($this->totalPageUrl != null) {
                $result['paging']['total'] = $this->totalPageUrl;
            }
        }

        return $result;
    }
public function aujaSerialize ( ) { $ result = array ( ) ; $ result [ 'type' ] = $ this -> getType ( ) ; $ result [ $ this -> getType ( ) ] = $ this -> basicSerialize ( ) ; if ( $ this -> nextPageUrl != null || $ this -> totalPageUrl != null ) { $ result [ 'paging' ] = array ( ) ; if ( $ this -> nextPageUrl != null ) { $ result [ 'paging' ] [ 'next' ] = $ this -> nextPageUrl ; } if ( $ this -> totalPageUrl != null ) { $ result [ 'paging' ] [ 'total' ] = $ this -> totalPageUrl ; } } return $ result ; }
Overridden to add an extra `paging` section to the result.

@return array The ready-to-use `array`.
Overridden to add an extra paging section to the result .