Blogmer beta 2


Users_model

Users_model is used to create and manage posts (blog).

Beta:  This is an Beta model. It can be changed anytime.

Functions:

Admin and user functions share same model

Users_model Function Reference

$this->Users_model->ForgetPassword()

This function takes email as input using input class and generate an reset password url. Send mail to user containing URL for reseting the password.

Output: A String

Note: Mail containing password reset url is sent to the user's email.

$this->Users_model-> ResetPassword()

This function will reset the current password and generate a new password.

$this->Users_model->ActivateUser()

On registration email verfication link is sent to user's email id.This functions takes profile id and check id as input and activate the user's account.

$this->Users_model-> UserRegistration()

Capture the posted data using input class. Store this data into database. No argument. User's profile is created.

$this->Users_model->ViewProfile($id)

Takes profile id as input and gives a table based profile output in string format.

$this->Users_model->DeleteUser($user_id,$page_id)

Deletes an already existing data entry of id $user_id and redirects it to $page_id .

$this->Users_model->activate_user($user_id,$page_id)

Activate the user.

$this->Users_model->deactivate_user($user_id,$page_id)

Deactivate the user.

$this->Users_model->edit_user($user_id,$page_id)

Grab the posted data using input class. Updates an already existing data entry of id $user_id and redirects it to $page_id .

$this->Users_model->create_user()

Create a new user.

$this->Users_model->list_users($pageid)

Show the all post entries into a tabular form with values.

Registration | Date | Member Name | User Status | Profile | Edit | Delete

Final Collection

$this->load->model('Users_model');
$this->Users_model->ForgetPassword();
$this->Users_model->ResetPassword();
$this->Users_model->ActivateUser();
$this->Users_model->UserRegistration();
$this->Users_model->ViewProfile($id);
$this->Users_model->DeleteUser($userid,$pageid);
$this->Users_model->activate_user($user_id,$page_id);
$this->Users_model->deactivate_user($user_id,$page_id);
$this->Users_model->edit_user($user_id,$page_id);
$this->Users_model->list_users($pageid);