Utility
class Utility
Utility/Helper where all the helper and utility functions will be available.
Methods
Validation for all the parameters required for the SDK
No description
Get the domain from the current object
Contentstack URL method to create the url based on the request
Header transformation as it required format
POST formatted query for the API server
Sending the GET requests with all the parameters in POST as well as GET
Wrap Result
Contentstack request to the API server based on the data
No description
Validate the key is set or not
Validate the String
Get Last activities
DEBUGGING MESSAGE
Details
at line 41
static array
validateInput(string $type = '', object $input = array())
Validation for all the parameters required for the SDK
at line 102
static
isLivePreview($query)
No description
at line 116
static string
getDomain(Stack $query)
Get the domain from the current object
at line 146
static string
contentstackUrl(object $queryObject = '', string $type = '')
Contentstack URL method to create the url based on the request
at line 191
static array
headers(array $query = '')
Header transformation as it required format
at line 215
static json
generateQuery(array $query = array())
POST formatted query for the API server
at line 270
static QueryParameters
generateQueryParams(array $query = array())
Sending the GET requests with all the parameters in POST as well as GET
at line 284
static ResultWrapped
wrapResult(object $result = '', object $queryObject = '')
Wrap Result
at line 378
static Result
contentstackRequest($stack, object $queryObject = '', object $type = '', $count = 0)
Contentstack request to the API server based on the data
at line 484
static
to_render_content($resp, $entry_uid, $live_response_decode)
No description
at line 506
static bool
isKeySet(array $input = array(), string $key = '')
Validate the key is set or not
at line 518
static bool
isEmpty(object $input)
Validate the String
at line 530
static object
getLastActivites(object $queryObject)
Get Last activities
at line 543
static object
debug(object $input, bool $exit = false)
DEBUGGING MESSAGE