Stack
class Stack
Stack Class to initialize the provided parameter Stack
Properties
$header |
Methods
Constructor of the Stack
To initialize the ContentType object from where the content will be fetched/retrieved.
ImageTrasform function is define for image manipulation with different
No description
To get the last_activity information of the configured environment from all the content types
This function returns host.
This function sets protocol.
This function return protocol type.
This function return Port.
This function sets Delivery Token.
This function sets environment name.
This function returns API Key.
This function returns Delivery Token.
This function returns environment name.
This function returns Branch.
This call returns comprehensive information of all the content types available in a particular stack in your account.
Details
at line 54
__construct(string $api_key = '', string $delivery_token = '', string $environment = '', $config = array('region' => '', 'branch' => '', 'live_preview' => array()))
Constructor of the Stack
at line 93
ContentType
ContentType(string $contentTypeId = '')
To initialize the ContentType object from where the content will be fetched/retrieved.
at line 106
Assets
Assets(string $assetUid = '')
Assets Class to initalize your Assets
at line 122
string
ImageTrasform($url, $parameters)
ImageTrasform function is define for image manipulation with different
at line 147
LivePreviewQuery($parameters)
No description
at line 163
Result
getLastActivities()
To get the last_activity information of the configured environment from all the content types
at line 176
Stack
setHost(string $host = '')
To set the host on stack object
at line 187
string
getHost()
This function returns host.
at line 198
Stack
setProtocol(string $protocol = '')
This function sets protocol.
at line 209
string
getProtocol()
This function return protocol type.
at line 220
Stack
setPort(string $port = '')
This function sets Port.
at line 232
string
getPort()
This function return Port.
at line 244
Stack
setAPIKEY(string $api_key = '')
This function sets API Key.
at line 257
Stack
setDeliveryToken(string $delivery_token = '')
This function sets Delivery Token.
at line 271
Stack
setEnvironment(string $environment = '')
This function sets environment name.
at line 283
string
getAPIKEY()
This function returns API Key.
at line 292
string
DeliveryToken()
This function returns Delivery Token.
at line 301
string
getEnvironment()
This function returns environment name.
at line 313
Stack
setBranch(string $branch = '')
This function sets Branch.
at line 325
string
Branch()
This function returns Branch.
at line 338
Stack
getContentTypes(object $params)
This call returns comprehensive information of all the content types available in a particular stack in your account.
at line 355
Stack
sync(object $params)
Syncs your Contentstack data with your app and ensures that the data is always up-to-date by providing delta updates