Overview

Namespaces

  • NGS
    • Client
      • Exception
    • Converter
    • Patterns
  • PHP

Classes

  • ApplicationProxy
  • CrudProxy
  • DomainProxy
  • HttpRequest
  • QueryString
  • ReportingProxy
  • RestHttp
  • StandardProxy
  • Overview
  • Namespace
  • Class
  • Tree

Class QueryString

Serializes various parameters into URL query string

Abstract
Namespace: NGS\Client
Package: NGS\Client
Located at Client/QueryString.php
Methods summary
public static string
# prepareCubeCall( array $dimensions, array $facts, array $order )

Serializes cube parameters into a query string

Serializes cube parameters into a query string

Parameters

$dimensions
array
$dimensions
$facts
array
$facts
$order
array
$order

Returns

string

Throws

InvalidArgumentException
public static string
# formatLimitAndOffset( mixed $limit, mixed $offset )

Serializes limit and offset to URL query string

Serializes limit and offset to URL query string

Parameters

$limit
mixed
$limit string|int|float
$offset
mixed
$offset string|int|float

Returns

string
public static string
# formatLimitAndOffsetAndOrder( mixed $limit, mixed $offset, array $order = null )

Serializes limit, offset and order to URL query string

Serializes limit, offset and order to URL query string

Parameters

$limit
mixed
$limit string|int|float
$offset
mixed
$offset string|int|float
$order
mixed
$order array Array of string=>bool pairs, where key is property_name, and value is true for ascending, and false for descending order <code> $order = array( 'name' => true, // order by ascending name 'surname' => false // order by descending surname) ); </code>

Returns

string
API documentation generated by ApiGen 2.8.0