/** * Get all reminders for the current user */ public function getListByCurrentUser() { global $USER; $result = array(); $res = \CTaskReminders::getList($order, array('USER_ID' => $USER->GetId())); while ($item = $res->fetch()) { $result['DATA']['REMINDER'][] = $item; } return $result; }