/** * Get Departments * * Obtain a list of departments for use in limiting the reserves list. * * @return array An associative array with key = dept. ID, value = dept. name. * @access public */ public function getDepartments() { // Graceful degradation -- return empty list if no method supported. return method_exists($this->driver, 'getDepartments') ? $this->driver->getDepartments() : array(); }