• Welcome to Simple Machines Community Forum. Please login or sign up.

list_getTopicNotifications

Description

Loads up a list of all current topic notifications

Syntax

array list_getTopicNotifications (int $start, int $items_per_page, string $sort, int $memID)



Parameter $start

Expected type: Integer
Description: Which row in the result set to start with



Parameter $items_per_page

Expected type: Integer
Description: How many items to show per page



Parameter $sort

Expected type: Escaped String
Description: An SQL clause indicating how to sort the results (eg "id_topic ASC")



Parameter $memID

Expected type: Integer
Description: The ID of the member to get topic notifications for



Return value

Expected type: Array of arrays
Description: notification_topics - information about each of the topics a user is subscribed to


Notes

  • Loads and returns an array of all topic notifications
  • Callback for $listOptions['get_items'] for the "topic_notification_list" list in notifications()
Advertisement: