| @@ 605-613 (lines=9) @@ | ||
| 602 | }); |
|
| 603 | } |
|
| 604 | ||
| 605 | public function suspend($comment) |
|
| 606 | { |
|
| 607 | $this->dbObject->transactionally(function() use ($comment) |
|
| 608 | { |
|
| 609 | $this->status = "Suspended"; |
|
| 610 | $this->save(); |
|
| 611 | Logger::suspendedUser($this->dbObject, $this, $comment); |
|
| 612 | }); |
|
| 613 | } |
|
| 614 | ||
| 615 | public function decline($comment) |
|
| 616 | { |
|
| @@ 615-623 (lines=9) @@ | ||
| 612 | }); |
|
| 613 | } |
|
| 614 | ||
| 615 | public function decline($comment) |
|
| 616 | { |
|
| 617 | $this->dbObject->transactionally(function() use ($comment) |
|
| 618 | { |
|
| 619 | $this->status = "Declined"; |
|
| 620 | $this->save(); |
|
| 621 | Logger::declinedUser($this->dbObject, $this, $comment); |
|
| 622 | }); |
|
| 623 | } |
|
| 624 | ||
| 625 | public function promote() |
|
| 626 | { |
|
| @@ 635-643 (lines=9) @@ | ||
| 632 | }); |
|
| 633 | } |
|
| 634 | ||
| 635 | public function demote($comment) |
|
| 636 | { |
|
| 637 | $this->dbObject->transactionally(function() use ($comment) |
|
| 638 | { |
|
| 639 | $this->status = "User"; |
|
| 640 | $this->save(); |
|
| 641 | Logger::demotedUser($this->dbObject, $this, $comment); |
|
| 642 | }); |
|
| 643 | } |
|
| 644 | ||
| 645 | #endregion |
|
| 646 | ||