\C_User

Class C_Security : User Manager for Calendar Application

Description: User Manager for Calendar Application

Summary

Methods
Properties
Constants
__construct()
checkUser()
getUserDetails()
setActiveCalendar()
$db
$dbObj
$userData
$loggedIn
$errorMsg
$successMsg
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : object

Type

object

$userData

$userData : array

Type

array

$loggedIn

$loggedIn : boolean|string

Type

boolean|string

$errorMsg

$errorMsg : string

Type

string

$successMsg

$successMsg : string

Type

string

Methods

__construct()

__construct(mixed $username, mixed $password)

__constructor Method checks user credentials are provided properly or not

Parameters

mixed $username
mixed $password

checkUser()

checkUser(mixed $username, mixed $password) : bool

Determines whether an user exists or not

Parameters

mixed $username
mixed $password

Returns

bool —

true if success and false otherwise

getUserDetails()

getUserDetails(int $userID)

Fetches User Details from Database based on userID

Parameters

int $userID

setActiveCalendar()

setActiveCalendar(mixed $userID, mixed $calIDs)

Sets a calendar active

Parameters

mixed $userID
mixed $calIDs