mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
Now the organisation unit parameter for methods:
- getMessagesByPersonID
- getMessagesByUID
- getSentMessagesByPerson
- getCountUnreadMessages
of controller system/Message must be the root of the organisation unit tree
This commit is contained in:
@@ -32,7 +32,7 @@ class Message extends APIv1_Controller
|
||||
public function getMessagesByPersonID()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // prestudent organisation unit
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
if (isset($person_id))
|
||||
@@ -53,7 +53,7 @@ class Message extends APIv1_Controller
|
||||
public function getMessagesByUID()
|
||||
{
|
||||
$uid = $this->get('uid');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // prestudent organisation unit
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
if (isset($uid))
|
||||
@@ -93,7 +93,7 @@ class Message extends APIv1_Controller
|
||||
public function getSentMessagesByPerson()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // prestudent organisation unit
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
if (isset($person_id))
|
||||
@@ -114,7 +114,7 @@ class Message extends APIv1_Controller
|
||||
public function getCountUnreadMessages()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // prestudent organisation unit
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user