\Weby\SlothUtils

Provides auxiliary functions.

Summary

Methods
Properties
Constants
toArray()
isAssoc()
normalizeArray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

toArray()

toArray(object  $row) : array

Converts an object data row to an array.

Parameters

object $row

Returns

array

isAssoc()

isAssoc(array  $row) : boolean

Checks whether a data row is an assoc array.

Parameters

array $row

Returns

boolean

normalizeArray()

normalizeArray(mixed  $data) : array

Normalize data to be an array regardless of initial type.

Parameters

mixed $data

Returns

array