Метод | Описание | |
---|---|---|
__construct ( $str_project_id, null $str_namespace = null ) | Create the auth middleware and set up the HTTP Client | |
beginTransaction ( boolean $bol_cross_group = FALSE ) : null | Start a transaction | |
deleteMulti ( array $arr_entities ) : mixed | Delete 1-many entities | |
getEndCursor ( ) : mixed | Get the end cursor from the last response | |
getHttpClient ( ) : GuzzleHttp\ClientInterface | Get the current HTTP Client in use | |
gql ( string $str_gql, null | array $arr_params = null ) : mixed | Fetch some Entities, based on the supplied GQL and, optionally, parameters | |
setHttpClient ( GuzzleHttp\ClientInterface $obj_client ) | Use a pre-configured HTTP Client |
Метод | Описание | |
---|---|---|
configureObjectValueParamForQuery ( object $obj_val, object $mix_value ) | Configure a Value parameter, based on the supplied object-type value | |
createMapper ( ) : |
Create a mapper that's right for this Gateway | |
extractAutoIDs ( ) : array | Extract Auto Insert IDs from the last response | |
fetchByKeyPart ( array $arr_key_parts, $str_setter ) : mixed | Fetch 1-many Entities, using the Key parts provided | |
httpClient ( ) : GuzzleHttp\ClientInterface | Lazily initialise the HTTP Client when needed. Once. | |
initHttpClient ( ) : GuzzleHttp\ClientInterface | Configure HTTP Client | |
upsert ( array $arr_entities ) : |
Put an array of Entities into the Datastore. Return any that need AutoIDs |
Метод | Описание | |
---|---|---|
actionUrl ( $str_action ) : string | Build a URL for a Datastore action | |
addParamsToQuery ( stdClass $obj_query, array $arr_params ) | Add Parameters to a GQL Query object | |
applyPartition ( stdClass $obj_request ) : stdClass | Apply project and namespace to a query | |
applyTransaction ( stdClass $obj_request ) : mixed | If we are in a transaction, apply it to the request object | |
buildCommitRequest ( ) : object | Build a basic commit request (used by upsert, delete) | |
buildQueryParamValue ( $mix_value ) : stdClass | Build a JSON representation of a value | |
executePostRequest ( $str_action, null $obj_request_body = null ) | Execute a POST request against the API |
public __construct ( $str_project_id, null $str_namespace = null ) | ||
$str_project_id | ||
$str_namespace | null |
public beginTransaction ( boolean $bol_cross_group = FALSE ) : null | ||
$bol_cross_group | boolean | |
Результат | null |
protected configureObjectValueParamForQuery ( object $obj_val, object $mix_value ) | ||
$obj_val | object | |
$mix_value | object |
protected createMapper ( ) : |
||
Результат |
public deleteMulti ( array $arr_entities ) : mixed | ||
$arr_entities | array | |
Результат | mixed |
protected extractAutoIDs ( ) : array | ||
Результат | array |
protected fetchByKeyPart ( array $arr_key_parts, $str_setter ) : mixed | ||
$arr_key_parts | array | |
$str_setter | ||
Результат | mixed |
public getEndCursor ( ) : mixed | ||
Результат | mixed |
public getHttpClient ( ) : GuzzleHttp\ClientInterface | ||
Результат | GuzzleHttp\ClientInterface |
protected httpClient ( ) : GuzzleHttp\ClientInterface | ||
Результат | GuzzleHttp\ClientInterface |
protected initHttpClient ( ) : GuzzleHttp\ClientInterface | ||
Результат | GuzzleHttp\ClientInterface |
public setHttpClient ( GuzzleHttp\ClientInterface $obj_client ) | ||
$obj_client | GuzzleHttp\ClientInterface |