예제 #1
0
function listagentsjson()
{
    $am = new AgentManager();
    $query = array_key_exists("term", $_REQUEST) ? $_REQUEST["term"] : "%";
    $type = array_key_exists("type", $_REQUEST) ? $_REQUEST["type"] : "Individual";
    $result .= $am->agentNameSearchJSON($query, $type);
    return $result;
}