Authentication and user administration service

package Amfphp_Examples_Authentication
author Sven Dens

 Methods

constructor

__construct() 

Exceptions

\Exception

function the authentication plugin uses to get accepted roles for each function Here login and logout are not protected, however

_getMethodRoles(\<String> $methodName) : \<array>

Parameters

$methodName

\<String>

Returns

\<array>

function to create a new user to authenticate with AMFPHP

createUser(string $firstName, string $lastName, string $userName, string $password, int $userRoleId) : \stdClass

Parameters

$firstName

string

$lastName

string

$userName

string

$password

string

$userRoleId

int

Exceptions

\Exception

Returns

function to delete an AMFPHP authentication user

deleteUser(int $id) 

Parameters

$id

int

get users

getUsers() : array

Returns

array

function to update an existing AMFPHP authentication user

updateUser(string $firstName, string $lastName, string $userName, string $password, int $userRoleId, int $id) : \type

Parameters

$firstName

string

$lastName

string

$userName

string

$password

string

$userRoleId

int

$id

int

Exceptions

\Exception

Returns

\type

 Properties

 

$adminOnlyMethods : array
 

$protectedMethods : array