-
Notifications
You must be signed in to change notification settings - Fork 1
User_type_model
This class is called User_type_model and contains the following functions which describes the functionalities as follows:
Here is the list of the functions that we used for our User_type_model
This is the constructor of the User_type_model class which has no argument.It can be used to define the functionalities of the functions that we defined it.
→ function __construct()
This function is used to add the type of the user, we have different user in the system, like normal user which has his own account privacy or admin which has full access privacy to the system.
→ function add_user_type($data)
This function is for the propose of returning data or information of specified user which has on the database.
→ function get_user_type_data()
For deleting a user from the system, we define this function, which has a parameter “$userTypedID” that remove the specified user.
→ function delete_user_type($userTypeID)
This function is used to provide the possibility that we can change the users type, for example we have a user to name of “Admin”, so if I want to change it to “Administrator” we have to have this function to do it.
→function update_user_type($userTypeID,$userTypeName)