Skip to content

User type model

ghezalahmad edited this page Jun 6, 2012 · 1 revision

Documentation of User_Typed_Model

Here is the list of the functions that we used for our User_type_model

This class is called User_type_model and contains the following functions which describes the functionalities as follows:

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 used to check the existence of the tables....

→ function table_exists($table_name = null)

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 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)

Clone this wiki locally