protected function buildQuery($data = null)
    {
        $params = array();

        if ($data instanceof Criteria) {
            $params = array_merge($params, $data->getParams());
            $params['orderBy'] = $data->getOrderBy();
        }

        if ($token = $this->getOption('token', false)) {
            $params['auth'] = $token;
        }

        return $params;
    }
protected function buildQuery($data = null)
    {
        $params = array();

        if ($data instanceof Criteria) {
            $params = array_merge($params, $data->getParams());
            $params['orderBy'] = $data->getOrderBy();
        }

        if ($token = $this->getOption('token', false)) {
            $params['auth'] = $token;
        }

        return $params;
    }
protected function buildQuery ( $ data = null ) { $ params = array ( ) ; if ( $ data instanceof Criteria ) { $ params = array_merge ( $ params , $ data -> getParams ( ) ) ; $ params [ 'orderBy' ] = $ data -> getOrderBy ( ) ; } if ( $ token = $ this -> getOption ( 'token' , false ) ) { $ params [ 'auth' ] = $ token ; } return $ params ; }
Build Query parameters for HTTP Request Client
@param $data
@return array
Build Query parameters for HTTP Request Client