Categories
Use this API to create, update and delete website post categories.
Methods
Invoke via \Components\Website\Posts\Categories::method()
Click a method name to copy it.
Deletes a record from the database
Parameters
$iPostCategoryId
int unsigned
A record's post_category_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iPostCategoryId
int unsigned
A record's post_category_id
Return a set of records from the database
Returns all categories for a post
Gets a single field from a record
Parameters
$iPostCategoryId
int unsigned
A record's post_category_id
Returns the number of records in the database (matching the filter if specified)
Returns a post category from its page
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iPostCategoryId
int unsigned
A record's post_category_id
Return
Array of
Categories that match the search query.