/** * */ public function Lookup() { if (!$this->request->user->canDoAction('can_import_ulan')) { return; } $o_wc = new WLPlugInformationServiceULAN(); $this->view->setVar('results', $o_wc->lookup(array(), $this->request->getParameter('term', pString), array('start' => (int) $this->request->getParameter('start', pInteger), 'count' => (int) $this->request->getParameter('count', pInteger)))); $this->render("ajax_ulan_lookup_json.php"); }
public function testBasic() { $o_service = new WLPlugInformationServiceULAN(); $va_return = $o_service->lookup(array(), 'Keith Haring'); $this->assertEquals(1, sizeof($va_return['results'])); }