XOOPS 2.5.6
Final
|
Go to the source code of this file.
Namespaces | |
namespace | kernel |
Functions | |
& | notificationCategoryInfo ($category_name= '', $module_id=null) |
& | notificationCommentCategoryInfo ($module_id=null) |
notificationEnabled ($style, $module_id=null) | |
notificationEventEnabled (&$category, &$event, &$module) | |
& | notificationEventInfo ($category_name, $event_name, $module_id=null) |
& | notificationEvents ($category_name, $enabled_only, $module_id=null) |
notificationGenerateConfig (&$category, &$event, $type) | |
& | notificationSubscribableCategoryInfo ($module_id=null) |
& notificationCategoryInfo | ( | $category_name = '' , |
|
$module_id = null |
|||
) |
Get an associative array of info for a particular notification category in the selected module. If no category is selected, return an array of info for all categories.
string | $name | Category name (default all categories) |
int | $module_id | ID of the module (default current module) |
Definition at line 74 of file notification_functions.php.
References $module, $module_handler, $module_id, $ret, $xoopsModule, and xoops_gethandler().
Referenced by notificationCommentCategoryInfo(), notificationEvents(), notificationSubscribableCategoryInfo(), XoopsNotificationHandler\triggerEvent(), and xoops_module_install().
& notificationCommentCategoryInfo | ( | $module_id = null | ) |
Get associative array of info for the category to which comment events belong.
int | $module_id | ID of the module (default current module) |
Definition at line 110 of file notification_functions.php.
References $module_id, $ret, notificationCategoryInfo(), and notificationEvents().
notificationEnabled | ( | $style, | |
$module_id = null |
|||
) |
Determine if notification is enabled for the selected module.
string | $style | Subscription style: 'block' or 'inline' |
int | $module_id | ID of the module (default current module) |
Definition at line 34 of file notification_functions.php.
References $config, $config_handler, $GLOBALS, $module, $module_handler, $module_id, $status, xoops_gethandler(), XOOPS_NOTIFICATION_ENABLEBLOCK, XOOPS_NOTIFICATION_ENABLEBOTH, and XOOPS_NOTIFICATION_ENABLEINLINE.
Referenced by b_system_notification_show().
notificationEventEnabled | ( | & | $category, |
& | $event, | ||
& | $module | ||
) |
Determine whether a particular notification event is enabled. Depends on module config options.
array | $category | Category info array |
array | $event | Event info array |
object | $module | Module |
Definition at line 294 of file notification_functions.php.
References $config_handler, $module, $notification_handler, notificationGenerateConfig(), and xoops_gethandler().
Referenced by notificationEvents().
& notificationEventInfo | ( | $category_name, | |
$event_name, | |||
$module_id = null |
|||
) |
Get associative array of info for the selected event in the selected category (for the selected module).
string | $category_name | Notification category |
string | $event_name | Notification event |
int | $module_id | ID of the module (default current module) |
Definition at line 318 of file notification_functions.php.
References $module_id, $ret, and notificationEvents().
Referenced by XoopsNotificationHandler\triggerEvent().
& notificationEvents | ( | $category_name, | |
$enabled_only, | |||
$module_id = null |
|||
) |
Get an array of info for all events (each event has associative array) in the selected category of the selected module.
string | $category_name | Category name |
bool | $enabled_only | If true, return only enabled events |
int | $module_id | ID of the module (default current module) |
Definition at line 142 of file notification_functions.php.
References $config_handler, $dir, $GLOBALS, $module, $module_handler, $module_id, $xoopsConfig, $xoopsModule, _NOT_BOOKMARK_NOTIFY, _NOT_BOOKMARK_NOTIFYCAP, _NOT_BOOKMARK_NOTIFYDSC, _NOT_COMMENT_NOTIFY, _NOT_COMMENT_NOTIFYCAP, _NOT_COMMENT_NOTIFYDSC, _NOT_COMMENT_NOTIFYSBJ, _NOT_COMMENTSUBMIT_NOTIFY, _NOT_COMMENTSUBMIT_NOTIFYCAP, _NOT_COMMENTSUBMIT_NOTIFYDSC, _NOT_COMMENTSUBMIT_NOTIFYSBJ, notificationCategoryInfo(), notificationEventEnabled(), XOOPS_COMMENT_APPROVEADMIN, XOOPS_COMMENT_APPROVEALL, XOOPS_COMMENT_APPROVENONE, XOOPS_COMMENT_APPROVEUSER, xoops_gethandler(), and xoops_loadLanguage().
Referenced by b_system_notification_show(), notificationCommentCategoryInfo(), notificationEventInfo(), and xoops_module_install().
notificationGenerateConfig | ( | & | $category, |
& | $event, | ||
$type | |||
) |
Generate module config info for a particular category, event pair. The selectable config options are given names depending on the category and event names, and the text depends on the category and event titles. These are pieced together in this function in case we wish to alter the syntax.
array | $category | Array of category info |
array | $event | Array of event info |
string | $type | The particular name to generate return string |
Definition at line 394 of file notification_functions.php.
References $type.
Referenced by notificationEventEnabled(), and XoopsNotificationHandler\triggerEvent().
& notificationSubscribableCategoryInfo | ( | $module_id = null | ) |
Get an array of associative info arrays for subscribable categories for the selected module.
int | $module_id | ID of the module |
Definition at line 338 of file notification_functions.php.
References $_GET, $_SERVER, $module_id, and notificationCategoryInfo().
Referenced by b_system_notification_show().