public function lookupRecipientAsync() { include_once 'Services/JSON/classes/class.ilJsonUtil.php'; include_once 'Services/Mail/classes/class.ilMailForm.php'; $search = $_REQUEST["term"]; $result = array(); if (!$search) { echo ilJsonUtil::encode($result); exit; } // #14768 $quoted = ilUtil::stripSlashes($search); $quoted = str_replace('%', '\\%', $quoted); $quoted = str_replace('_', '\\_', $quoted); $search_recipients = $_GET["ref"] != "wsp"; $mailFormObj = new ilMailForm(); $result = $mailFormObj->getRecipientAsync("%" . $quoted . "%", ilUtil::stripSlashes($search), $search_recipients); echo ilJsonUtil::encode($result); exit; }
public function lookupRecipientAsync() { include_once 'Services/JSON/classes/class.ilJsonUtil.php'; include_once 'Services/Mail/classes/class.ilMailForm.php'; $search = $_REQUEST["term"]; $result = array(); if (!$search) { echo ilJsonUtil::encode($result); exit; } $mailFormObj = new ilMailForm(); $result = $mailFormObj->getRecipientAsync("%" . $search . "%", $search); echo ilJsonUtil::encode($result); exit; }