Class StandardProxy
Proxy service to various domain operations such as bulk persistence, data
analysis, and remote service calls counting and event sourcing. It is preferred
to use domain patterns instead of this proxy service.
Methods summary
public
|
#
__construct( NGS\Client\RestHttp $http = null )
Create a new StandardProxy instance
Create a new StandardProxy instance
Parameters
- $http
NGS\Client\RestHttp
$http RestHttp instance used for http request. Optionally specify an instance,
otherwise use a singleton instance
|
public static
NGS\Client\DomainProxy
|
#
instance( )
Gets singleton instance of Domain.svc proxy
Gets singleton instance of Domain.svc proxy
Returns
|
public
array|mixed
|
#
insert( array $aggregates )
Insert multiple aggregates with single request to the remote server
Insert multiple aggregates with single request to the remote server
Parameters
- $aggregates
array $aggregates Array of \NGS\Patterns\AggregateRoot instances
Returns
array|mixed
|
public
|
#
update( array $aggregates )
Update multiple aggregates with single command/request
Update multiple aggregates with single command/request
Parameters
- $aggregates
array $aggregates Array of \NGS\Patterns\AggregateRoot instances
|
public
mixed
|
#
delete( array $aggregates )
Delete multiple aggregates with single command/request
Delete multiple aggregates with single command/request
Parameters
- $aggregates
array $aggregates
Returns
mixed
Throws
|
public
array
|
#
olapCubeWithSpecification( mixed $cube, mixed $specification, array $dimensions, array $facts, array $order = array() )
Perform OLAP analysis on a cube using specification
Perform OLAP analysis on a cube using specification
Returns
array Results
|
public
|
#
olapCube( mixed $cube, array $dimensions, array $facts, array $order = array() )
Performs OLAP analysis on a cube
Performs OLAP analysis on a cube
|
public
mixed
|
#
execute( mixed $service, mixed $body = null )
Execute custom server service
Execute custom server service
Returns
mixed
|
Properties summary
protected
mixed
|
$http
|
|
|
protected static
mixed
|
$instance
|
|
|