PHP Класс Pingpp\Util\Util

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
convertPingppObjectToArray ( array $values, $keep_object = false ) : array Recursively converts the PHP Pingpp object to an array.
convertPingppObjectToStdObject ( array $values ) : array Recursively converts the PHP Pingpp object to an stdObject.
convertToPingppObject ( stdObject $resp, array $opts ) : PingppObject | array Converts a response from the Pingpp API to the corresponding PHP object.
getRequestHeaders ( )
isList ( array | mixed $array ) : boolean Whether the provided array (or other) is a list rather than a dictionary.
utf8 ( string | mixed $value )

Описание методов

convertPingppObjectToArray() публичный статический Метод

Recursively converts the PHP Pingpp object to an array.
public static convertPingppObjectToArray ( array $values, $keep_object = false ) : array
$values array The PHP Pingpp object to convert.
Результат array

convertPingppObjectToStdObject() публичный статический Метод

Recursively converts the PHP Pingpp object to an stdObject.
public static convertPingppObjectToStdObject ( array $values ) : array
$values array The PHP Pingpp object to convert.
Результат array

convertToPingppObject() публичный статический Метод

Converts a response from the Pingpp API to the corresponding PHP object.
public static convertToPingppObject ( stdObject $resp, array $opts ) : PingppObject | array
$resp stdObject The response from the Pingpp API.
$opts array
Результат Pingpp\PingppObject | array

getRequestHeaders() публичный статический Метод

public static getRequestHeaders ( )

isList() публичный статический Метод

Whether the provided array (or other) is a list rather than a dictionary.
public static isList ( array | mixed $array ) : boolean
$array array | mixed
Результат boolean True if the given object is a list.

utf8() публичный статический Метод

public static utf8 ( string | mixed $value )
$value string | mixed A string to UTF8-encode.