Methods
(inner) find(name) → (nullable) {Department}
Returns a matched department data in the DB.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Source:
Returns:
- Type
- Department
(inner) getAll() → {Array.<Department>}
Returns all department data from DB.
- Source:
Returns:
- Type
- Array.<Department>
(async, inner) getCourses(department) → {Promise.<Array.<Course>>}
Returns the department course curriculum.
Parameters:
Name | Type | Description |
---|---|---|
department |
Department |
- Source:
Returns:
- Type
- Promise.<Array.<Course>>
(async, inner) getInformation(department) → {Promise.<Informaion>}
Returns the department information.
Parameters:
Name | Type | Description |
---|---|---|
department |
Department |
- Source:
Returns:
- Type
- Promise.<Informaion>
(async, inner) getProfessors(department) → {Promise.<string>}
Returns the department faculty member names.
Parameters:
Name | Type | Description |
---|---|---|
department |
Department |
- Source:
Returns:
- Type
- Promise.<string>
(async, inner) getRestrictedCourses(department) → {Promise.<Array.<Course>>}
Returns the department restricted courses.
Parameters:
Name | Type | Description |
---|---|---|
department |
Department |
- Source:
Returns:
- Type
- Promise.<Array.<Course>>