Parse PHP SDK API Reference

ParseServerInfo
in package

Class ParseFeatures - Representation of server-side features

Tags
author

Ben Friedman [email protected]

Table of Contents

$serverFeatures  : array<string|int, mixed>
Reported server features and configs
$serverVersion  : string
Reported server version
_setServerVersion()  : mixed
Sets the current server version.
get()  : mixed
Get a specific feature set from the server
getCloudCodeFeatures()  : array<string|int, mixed>
Gets features available for cloudCode
getFeatures()  : array<string|int, mixed>
Gets features for the current server
getGlobalConfigFeatures()  : array<string|int, mixed>
Gets features available for globalConfig
getHooksFeatures()  : array<string|int, mixed>
Gets features available for hooks
getLogsFeatures()  : array<string|int, mixed>
Gets features available for logs
getPushFeatures()  : array<string|int, mixed>
Gets features available for push
getSchemasFeatures()  : array<string|int, mixed>
Gets features available for schemas
getVersion()  : string
Gets the reported version of the current server
getServerInfo()  : array<string|int, mixed>
Requests, sets and returns server features and version

Properties

$serverFeatures

Reported server features and configs

private static array<string|int, mixed> $serverFeatures

$serverVersion

Reported server version

private static string $serverVersion

Methods

_setServerVersion()

Sets the current server version.

public static _setServerVersion(string $version) : mixed

Allows setting the server version to avoid making an additional request if the version is obtained elsewhere.

Parameters
$version : string

Version to set

Return values
mixed

get()

Get a specific feature set from the server

public static get(string $key) : mixed
Parameters
$key : string

Feature set to get

Return values
mixed

getCloudCodeFeatures()

Gets features available for cloudCode

public static getCloudCodeFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFeatures()

Gets features for the current server

public static getFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getGlobalConfigFeatures()

Gets features available for globalConfig

public static getGlobalConfigFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHooksFeatures()

Gets features available for hooks

public static getHooksFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLogsFeatures()

Gets features available for logs

public static getLogsFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPushFeatures()

Gets features available for push

public static getPushFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSchemasFeatures()

Gets features available for schemas

public static getSchemasFeatures() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVersion()

Gets the reported version of the current server

public static getVersion() : string
Return values
string

getServerInfo()

Requests, sets and returns server features and version

private static getServerInfo() : array<string|int, mixed>
Tags
throws
ParseException
Return values
array<string|int, mixed>

Search results