/** * Lists all disorders for a given search term. */ public function actionAutocomplete() { echo CJavaScript::jsonEncode(Procedure::getList($_GET['term'], @$_GET['restrict'])); }
public function testGetList_RestrictUnbooked() { $this->assertEquals(array('Test Procedure'), Procedure::getList('Proc', 'unbooked')); }