Class shardimage\shardimagephpapi\helpers\ApiHelper
Inheritance | shardimage\shardimagephpapi\helpers\ApiHelper |
---|
Helper methods for general API purposes.
Public Methods
Method | Description | Defined 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
Camelizes a string removig all non-alphanumeric characters and making it camelcase.
public static string camelize ( $string ) | ||
$string | string | String |
Cleans an array, removing NULL fields and empty subarrays.
public static array cleanup ( $array ) | ||
$array | array | Array |
Generates a random unique ID.
public static string generateId ( ) |
Replaces unsafe values in an array with NULL (e.g. resources, objects).
public static array maskUnsafeAttributes ( $array ) | ||
$array | array | Array |