Authenticates using a phone number and pin
integer|-1
authPhonePin
(strPhone $strPhone, strPin $strPin)
-
strPhone
$strPhone: user's phone number
-
strPin
$strPin: user's pin number
Authenticates using a username and password
an
authUserPass
(strUsername $strUsername, strPassword $strPassword)
-
strUsername
$strUsername: user's username
-
strPassword
$strPassword: user's password
Connects the class instance to the database
void
dbConnect
()
Diconnects the class instance from the database
void
dbDisconnect
()
Executes the user command
void
executeCommand
(int_commandId $intCommandId, int_deviceId $intDeviceId, intUserId $intUserId)
-
int_commandId
$intCommandId
-
int_deviceId
$intDeviceId
-
intUserId
$intUserId: valid if of a user
Returns commands of the given menu
array
getCommands
(intMenuId $intMenuId, intUserId $intUserId)
-
intMenuId
$intMenuId: valid id of a menu
-
intUserId
$intUserId: valid if of a user
void
getMainMenuId
(mixed $intUserId)
Returns sub menus of the given menu
array
getSubMenus
(intMenuId $intMenuId, intUserId $intUserId)
-
intMenuId
$intMenuId: valid id of a menu
-
intUserId
$intUserId: valid if of a user
Retrieves the userId for the user
integer
getUserId
(strUsername $strUsername)
-
strUsername
$strUsername: a valid username contained in the database
Retrieves the userId for the user
an
getUserIdByPhone
(strPhone $strPhone)
-
strPhone
$strPhone: a valid phone number in the database
Checks where the telephone exists
true
phoneExists
(strPhone $strPhone)
-
strPhone
$strPhone: user's phone
Inserts the registration information into the database
void
registerUser
(strLastName $strLastName, strFirstName $strFirstName, strUsername $strUsername, strPassword $strPassword, strPhone $strPhone, strPin $strPin, strServer $strServer, strAddress $strAddress)
-
strLastName
$strLastName: validated last name
-
strFirstName
$strFirstName: validated first name
-
strUsername
$strUsername: validated username
-
strPassword
$strPassword: validated password
-
strPhone
$strPhone: validated phone
-
strPin
$strPin: validated pin
-
strServer
$strServer: validated sip server
-
strAddress
$strAddress: validated sip address
Checks where the username exists in the database
true|false
userExists
(strUsername $strUsername)
-
strUsername
$strUsername: user's username