Begin implementing user management
This commit is contained in:
@@ -14,6 +14,9 @@ class User extends CI_Model {
|
||||
*/
|
||||
public $forgottenPasswordCode;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->load->config('auth', true);
|
||||
@@ -313,6 +316,15 @@ class User extends CI_Model {
|
||||
return $this->db->get('users');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all users.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAll() {
|
||||
return $this->get()->result_array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of users.
|
||||
*
|
||||
@@ -427,7 +439,7 @@ class User extends CI_Model {
|
||||
}
|
||||
|
||||
/**
|
||||
* delete
|
||||
* Deletes the specified user.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user