coach helper status
This commit is contained in:
@@ -15,7 +15,7 @@ class user {
|
||||
private $user_last_name;
|
||||
private $user_first_name;
|
||||
private $user_password;
|
||||
private $user_email;
|
||||
private $user_helper;
|
||||
private $user_last_login;
|
||||
private $logged_in;
|
||||
private $user_type;
|
||||
@@ -41,8 +41,8 @@ class user {
|
||||
$this->user_password = $_u_pass;
|
||||
}
|
||||
|
||||
public function set_ua_email($_u_email) {
|
||||
$this->user_email = $_u_email;
|
||||
public function set_ua_helper($_u_helper) {
|
||||
$this->user_helper = $_u_helper;
|
||||
}
|
||||
|
||||
public function set_ua_last_login($_u_last_login) {
|
||||
@@ -73,8 +73,8 @@ class user {
|
||||
return $this->user_password;
|
||||
}
|
||||
|
||||
public function get_ua_email() {
|
||||
return $this->user_email;
|
||||
public function get_ua_helper() {
|
||||
return $this->user_helper;
|
||||
}
|
||||
|
||||
public function get_ua_deleted() {
|
||||
@@ -123,22 +123,22 @@ class user {
|
||||
$this->user_type = $_type;
|
||||
}
|
||||
|
||||
public static function create_user($_name, $_email, $_password) {
|
||||
public static function create_user($_name, $_helper, $_password) {
|
||||
global $sql;
|
||||
return $sql->insert_into('user_coach', array(
|
||||
'ua_name' => $_name,
|
||||
'ua_email' => $_email,
|
||||
'ua_helper' => $_helper,
|
||||
'ua_password' => $_password
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static function update_user($_name, $_email, $_password, $_ua_id) {
|
||||
public static function update_user($_name, $_helper, $_password, $_ua_id) {
|
||||
global $sql;
|
||||
return $sql->update_table('user_coach',
|
||||
array(
|
||||
'ua_name' => $_name,
|
||||
'ua_email' => $_email,
|
||||
'ua_helper' => $_helper,
|
||||
'ua_password' => $_password
|
||||
),
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user