added nicer overview and delete function
This commit is contained in:
1 parent
0f13bdea27
commit
ddf13b2413
8 files changed
+81
-23
No files matched your search
@@ -33,6 +33,16 @@ class User extends Model {
|
||||
unset($_SESSION['user']);
|
||||
}
|
||||
|
||||
function removeDog($dogid)
|
||||
{
|
||||
if(!$this->id) return false;
|
||||
if (in_array($dogid, $this->data['dogs']))
|
||||
{
|
||||
$this->data['dogs'] = array_diff($this->data['dogs'],[$dogid]);
|
||||
$this->save();
|
||||
}
|
||||
}
|
||||
|
||||
function getAll($filtered = true)
|
||||
{
|
||||
$keys = $this->redis->keys($this->dbTable.':*');
|
||||
|
||||
Reference in new issue
Block a user