Categories
Methods
Invoke via \Components\Marketing\Events\Categories::method()
Click a method name to copy it.
Set an event as belonging to a category.
Deletes a record from the database
Parameters
$iEventCategoryId
int
A record's event_category_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iEventCategoryId
int
A record's event_category_id
Return a set of records from the database
Return all of the categories that an event belongs to.
Return
Rows from the marketing_events_categories_events table with the column 'event_category_id'.
Gets a single field from a record
Parameters
$iEventCategoryId
int
A record's event_category_id
Returns the number of records in the database (matching the filter if specified)
Is the event marked as belonging to a category.
Return
True if belongs, false otherwise.
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iEventCategoryId
int
A record's event_category_id
Return
Array of
Categories that match the search query.