Documentation

PubNubUtil
in package

Table of Contents

Methods

buildUrl()  : string
WARNING: query elements should be already encoded inside Endpoint::customParams() method if required
convertIso8859ToUtf8()  : mixed
extendArray()  : array<string|int, mixed>
fetchPamPermissionsFrom()  : mixed
isAssoc()  : mixed
joinChannels()  : string
joinItems()  : mixed
joinQuery()  : mixed
pamEncode()  : mixed
preparePamParams()  : mixed
signSha256()  : mixed
splitItems()  : array<string|int, mixed>
stringEndsWith()  : bool
Tests if given string ends with the specified suffix.
tokenEncode()  : mixed
urlEncode()  : mixed
urlWrite()  : mixed
uuid()  : mixed
writeValueAsString()  : mixed

Methods

buildUrl()

WARNING: query elements should be already encoded inside Endpoint::customParams() method if required

public static buildUrl(string $basePath, string $path, mixed $params) : string
Parameters
$basePath : string

generated by BasePathManager

$path : string
$params : mixed
Return values
string

url

convertIso8859ToUtf8()

public static convertIso8859ToUtf8(mixed $iso_string) : mixed
Parameters
$iso_string : mixed

extendArray()

public static extendArray(mixed $existingItems, mixed $newItems) : array<string|int, mixed>
Parameters
$existingItems : mixed
$newItems : mixed
Return values
array<string|int, mixed>

fetchPamPermissionsFrom()

public static fetchPamPermissionsFrom(mixed $jsonInput) : mixed
Parameters
$jsonInput : mixed

isAssoc()

public static isAssoc(mixed $arr) : mixed
Parameters
$arr : mixed

joinChannels()

public static joinChannels(array<string|int, mixed> $channels) : string
Parameters
$channels : array<string|int, mixed>
Return values
string

joinItems()

public static joinItems(mixed $items) : mixed
Parameters
$items : mixed

joinQuery()

public static joinQuery(mixed $queryElements) : mixed
Parameters
$queryElements : mixed

pamEncode()

public static pamEncode(mixed $url) : mixed
Parameters
$url : mixed

preparePamParams()

public static preparePamParams(mixed $params) : mixed
Parameters
$params : mixed

signSha256()

public static signSha256(mixed $secret, mixed $signInput) : mixed
Parameters
$secret : mixed
$signInput : mixed

splitItems()

public static splitItems(string $itemsString) : array<string|int, mixed>
Parameters
$itemsString : string
Return values
array<string|int, mixed>

stringEndsWith()

Tests if given string ends with the specified suffix.

public static stringEndsWith(string $string, string $suffix) : bool
Parameters
$string : string
$suffix : string
Return values
bool

tokenEncode()

public static tokenEncode(mixed $token) : mixed
Parameters
$token : mixed

urlEncode()

public static urlEncode(mixed $value) : mixed
Parameters
$value : mixed

urlWrite()

public static urlWrite(mixed $value) : mixed
Parameters
$value : mixed

writeValueAsString()

public static writeValueAsString(mixed $value) : mixed
Parameters
$value : mixed

        
On this page

Search results