new CategoriesHelper()
This class contains the core method implementations that belong to the categories tab
of the backend services page.
- Source:
Methods
-
delete(id)
-
Delete category record.
Parameters:
Name Type Description id
int Record id to be deleted. - Source:
-
display(category)
-
Display a category record on the form.
Parameters:
Name Type Description category
object Contains the category data. - Source:
-
filter(key)
-
Filter service categories records.
Parameters:
Name Type Description key
string This key string is used to filter the category records. - Source:
-
getFilterHtml(category) → {string}
-
Get the filter results row html code.
Parameters:
Name Type Description category
object Contains the category data. - Source:
Returns:
Returns the record html code.- Type
- string
-
resetForm()
-
Bring the category form back to its initial state.
- Source:
-
save(category)
-
Save a category record to the database (via ajax post).
Parameters:
Name Type Description category
object Contains the category data. - Source:
-
validate(category)
-
Validate category data before save (insert or update).
Parameters:
Name Type Description category
object Contains the category data. - Source: