public function testGetExtendedInfo() { $o_service = new WLPlugInformationServiceULAN(); $vm_ret = $o_service->getExtendedInformation(array(), 'http://vocab.getty.edu/ulan/500024253'); $this->assertArrayHasKey('display', $vm_ret); $this->assertInternalType('string', $vm_ret['display']); $this->assertNotEmpty($vm_ret['display']); }
/** * */ public function Detail() { if (!$this->request->user->canDoAction('can_import_ulan')) { return; } $o_wc = new WLPlugInformationServiceULAN(); $this->view->setVar('detail', $o_wc->getExtendedInformation(array(), $this->request->getParameter('url', pString))); $this->render("ajax_ulan_detail_json.php"); }