mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Added method getSentMessagesByPerson to controller Message
This commit is contained in:
@@ -85,6 +85,26 @@ class Message extends APIv1_Controller
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getSentMessagesByPerson()
|
||||
{
|
||||
$person_id = $this->get("person_id");
|
||||
$all = $this->get("all");
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->messagelib->getSentMessagesByPerson($person_id, $all);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user