JFormFieldCategoryEdit::getOptions

Method to get a list of categories that respects access controls and can be used for either category assignment or parent category assignment in edit screens.

Use the parent element to indicate that the field will be used for assigning parent categories.