Method |
Description |
|
checkForNull ( $array ) |
*
|---------------------------------------------------------------------------
| Loop through a statement and check for NULL values. |
|
convertIds ( $models = [] ) |
|
|
getAgentIdentifier ( stdClass $actor ) : String | null |
Determines which identifier is currently in use in the given actor. |
|
getClient ( String $username, $password ) : Model |
Checks the authentication. |
|
getCurrentDate ( ) : String |
Gets the current date and time in ISO format using the current timezone. |
|
getEnvVar ( $var ) |
|
|
getEnvironment ( AssocArray $config, String $givenHost ) : String |
Gets the environment by matching a given host to a config. |
|
getGravatar ( $email, $size = '50' ) |
*
|---------------------------------------------------------------------------
| Get gravatar
|--------------------------------------------------------------------------- |
|
getLrsFromAuth ( ) : Locker\Helpers\Lrs |
Gets the current LRS from the Authorization header. |
|
getLrsFromUserPass ( String $username, String $password ) : Locker\Helpers\Lrs |
Gets the Lrs associated with the given username and password. |
|
getUserPassFromAuth ( ) : [String] |
Gets the username and password from the authorization string. |
|
getUserPassFromBAuth ( String $authorization ) : [String] |
Gets the Client/Lrs username and password from the Basic Auth authorization string. |
|
getUserPassFromOAuth ( String $authorization ) : [String] |
Gets the Client/Lrs username and password from the OAuth authorization string. |
|
mixedMultipartContentType ( $boundary = null ) |
|
|
replaceFullStop ( $array ) |
*
|---------------------------------------------------------------------------
| Loop through a statement and check keys for full stops, if exist, replace. |
|
replaceFullStopInKeys ( $string ) |
*
|---------------------------------------------------------------------------
| Mongo doesn't allow full stops in keys, so replace with html entity &46;
|--------------------------------------------------------------------------- |
|
replaceHtmlEntity ( $array, $toArray = false ) |
*
|----------------------------------------------------------------------------
| scan array and replace &46; with . (This is a result of . being
| reserved in Mongo) convert array to json as this is faster for
| multi-dimensional arrays (?) @todo check this out. |
|
validateAtom ( Locker\XApi\Atom $atom, String $trace = null ) |
Validates a XAPIAtom. |
|