Class Department
A department with optional sub-department
add_subdepartment
( sub
)
Add sub-department to this department
Parameters:-
sub
<Department>department
alternate_label
(
)
Get the alternate label of this department Return the alternate label of this department. The alternate label expresses the plural "all" form of the normal label. For example, if the normal label is "Books", then the alternate label is "All Books". Note that alternate label and can be empty - in that case the normal label should be displayed instead
alternate label
alternate_label
(
)
Get the alternate label of this department
alternate label of this department
has_subdepartments
(
)
Check if this department has subdepartments or has_subdepartments flag is set
True if this department has subdepartments or has_subdepartments flag is set
id
(
)
Get the identifier of this department
identifier of this department
label
(
)
Get the label of this department
label of this department
query
(
)
Get the canned query associated with this department
canned query associated with this department
set_has_subdepartments
( subdepartments
)
Sets has_subdepartments flag of this department
Parameters:-
subdepartments
<Boolean>
set_subdepartments
( departments
)
Set sub-departments of this department
Parameters:-
departments
<Array of Department>
subdepartments
(
)
Get list of sub-departments of this department
list of sub-departments of this department