mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
remove transfer from user
This commit is contained in:
parent
fb6abb4d91
commit
b42c2490ac
5 changed files with 41 additions and 108 deletions
|
@ -39,17 +39,6 @@ namespace models;
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return users by their transfer status.
|
||||
* @param bool $transfer : transfer status
|
||||
* @return array
|
||||
*/
|
||||
public function gets_by_transfer($transfer)
|
||||
{
|
||||
return $this->_select('user', ['transfer' => $transfer]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return list of user.
|
||||
*
|
||||
|
@ -112,18 +101,6 @@ namespace models;
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update a user transfer property value by his id.
|
||||
* @param int $id : User id
|
||||
* @param array $transfer : The new transfer property value
|
||||
* @return int : Number of modified lines
|
||||
*/
|
||||
public function update_transfer($id, $transfer)
|
||||
{
|
||||
return $this->_update('user', ['transfer' => $transfer], ['id' => $id]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update a user email by his id.
|
||||
* @param int $id : User id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue