getList() public static method

Get a list of procedures.
public static getList ( string $term, string $restrict = null ) : array
$term string term to search by
$restrict string Set to 'booked' or 'unbooked' to restrict results to procedures of that type
return array
 /**
  * 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'));
 }