Class shardimage\shardimagephpapi\helpers\ApiHelper

Inheritanceshardimage\shardimagephpapi\helpers\ApiHelper

Helper methods for general API purposes.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
camelize() Camelizes a string removig all non-alphanumeric characters and making it camelcase. shardimage\shardimagephpapi\helpers\ApiHelper
cleanup() Cleans an array, removing NULL fields and empty subarrays. shardimage\shardimagephpapi\helpers\ApiHelper
generateId() Generates a random unique ID. shardimage\shardimagephpapi\helpers\ApiHelper
maskUnsafeAttributes() Replaces unsafe values in an array with NULL (e.g. resources, objects). shardimage\shardimagephpapi\helpers\ApiHelper

Method Details

camelize() public static method

Camelizes a string removig all non-alphanumeric characters and making it camelcase.

public static string camelize ( $string )
$string string

String

cleanup() public static method

Cleans an array, removing NULL fields and empty subarrays.

public static array cleanup ( $array )
$array array

Array

generateId() public static method

Generates a random unique ID.

public static string generateId ( )
maskUnsafeAttributes() public static method

Replaces unsafe values in an array with NULL (e.g. resources, objects).

public static array maskUnsafeAttributes ( $array )
$array array

Array