XOOPS
2.6.0
|
Public Member Functions | |
deleteModuleRelations (XoopsModule $module) | |
enabled ($style, $module_dirname=null) | |
eventEnabled (&$category, &$event, $dirname) | |
generateConfig (&$category, &$event, $type) | |
getCategory ($category_name= '', $dirname=null) | |
getCommentsCategory ($dirname=null) | |
getEvent ($category_name, $event_name, $module_dirname=null) | |
getEvents ($category_name, $enabled_only, $dirname=null) | |
getHandlerNotification () | |
getItem ($category, $item_id, $dirname=null) | |
getPluginableConfigs (XoopsModule $module) | |
getSubscribableCategories ($module_dirname=null) | |
getTags ($category, $item_id, $event, $dirname=null) | |
init () | |
insertModuleRelations (XoopsModule $module) | |
Public Member Functions inherited from Xoops\Module\Helper\HelperAbstract | |
disableCache () | |
getConfig ($name) | |
getConfigs () | |
getForm ($obj, $name) | |
getHandler ($name) | |
getModule () | |
init () | |
isCurrentModule () | |
isUserAdmin () | |
loadLanguage ($language) | |
loadLocale () | |
path ($path= '') | |
redirect ($url, $time=3, $message= '', $addredirect=true, $allowExternalLink=false) | |
url ($url= '') | |
xoops () | |
Static Public Member Functions | |
static | getInstance () |
Static Public Member Functions inherited from Xoops\Module\Helper\HelperAbstract | |
static | getInstance () |
Additional Inherited Members | |
Protected Member Functions inherited from Xoops\Module\Helper\HelperAbstract | |
_addLog ($log) | |
setDebug ($debug) | |
setDirname ($dirname) | |
Protected Attributes inherited from Xoops\Module\Helper\HelperAbstract | |
$_debug = false | |
$_dirname = '' | |
$_module = null | |
Definition at line 19 of file helper.php.
Notifications::deleteModuleRelations | ( | XoopsModule | $module | ) |
XoopsModule | $module |
Definition at line 515 of file helper.php.
References $config, $config_handler, $configs, $criteria, $xoops, getHandlerNotification(), Xoops\getInstance(), and Xoops\Core\Kernel\XoopsObject\getVar().
Notifications::enabled | ( | $style, | |
$module_dirname = null |
|||
) |
string | $style | |
null | string | $module_dirname |
Definition at line 66 of file helper.php.
References $status, $xoops, and Xoops\getInstance().
Notifications::eventEnabled | ( | & | $category, |
& | $event, | ||
$dirname | |||
) |
Determine whether a particular notification event is enabled. Depends on module config options.
array | &$category | Category info array |
array | &$event | Event info array |
string | $dirname | Module |
Definition at line 359 of file helper.php.
References $dirname, $xoops, generateConfig(), and Xoops\getInstance().
Referenced by getEvents().
Notifications::generateConfig | ( | & | $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 |
Definition at line 461 of file helper.php.
References $type.
Referenced by eventEnabled().
Notifications::getCategory | ( | $category_name = '' , |
|
$dirname = 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 | $category_name | Category name (default all categories) |
string | $dirname | ID of the module (default current module) |
Definition at line 142 of file helper.php.
References $dirname, $xoops, and Xoops\getInstance().
Referenced by getCommentsCategory(), getEvents(), getPluginableConfigs(), and getSubscribableCategories().
Notifications::getCommentsCategory | ( | $dirname = null | ) |
Get associative array of info for the category to which comment events belong.
todo, this belongs in the comment module no? - trabis
string | $dirname | Dirname of the module (default current module) |
Definition at line 174 of file helper.php.
References $dirname, getCategory(), and getEvents().
Notifications::getEvent | ( | $category_name, | |
$event_name, | |||
$module_dirname = 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 |
string | $module_dirname | Dirname of the module (default current module) |
Definition at line 384 of file helper.php.
References getEvents().
Notifications::getEvents | ( | $category_name, | |
$enabled_only, | |||
$dirname = 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 |
string | $dirname | Dirname of the module (default current module) |
Definition at line 207 of file helper.php.
References $dir, $dirname, $helper, $xoops, _MD_NOTIFICATIONS_BOOKMARK_NOTIFY, _MD_NOTIFICATIONS_BOOKMARK_NOTIFYCAP, _MD_NOTIFICATIONS_BOOKMARK_NOTIFYDSC, _MD_NOTIFICATIONS_COMMENT_NOTIFY, _MD_NOTIFICATIONS_COMMENT_NOTIFYCAP, _MD_NOTIFICATIONS_COMMENT_NOTIFYDSC, _MD_NOTIFICATIONS_COMMENT_NOTIFYSBJ, _MD_NOTIFICATIONS_COMMENTSUBMIT_NOTIFY, _MD_NOTIFICATIONS_COMMENTSUBMIT_NOTIFYCAP, _MD_NOTIFICATIONS_COMMENTSUBMIT_NOTIFYDSC, _MD_NOTIFICATIONS_COMMENTSUBMIT_NOTIFYSBJ, eventEnabled(), XoopsBaseConfig\get(), getCategory(), getInstance(), and Xoops\getInstance().
Referenced by getCommentsCategory(), getEvent(), and getPluginableConfigs().
Notifications::getHandlerNotification | ( | ) |
Definition at line 55 of file helper.php.
References Xoops\Module\Helper\HelperAbstract\getHandler().
Referenced by deleteModuleRelations().
|
static |
Definition at line 47 of file helper.php.
Referenced by b_notification_show(), Comments\displayPost(), NotificationsPreload\eventCoreFooterStart(), NotificationsPreload\eventCoreIncludeCheckloginSuccess(), NotificationsPreload\eventOnModuleInstallConfigs(), NotificationsPreload\eventOnModuleUnistall(), NotificationsPreload\eventOnModuleUpdateConfigs(), NotificationsPreload\eventOnSystemPreferencesForm(), getEvents(), NotificationsNotification\notifyUser(), NotificationsNotificationHandler\triggerEvent(), NotificationsSystemPlugin\userMenus(), xoops_module_install_notifications(), and xoops_module_pre_uninstall_notifications().
Notifications::getItem | ( | $category, | |
$item_id, | |||
$dirname = null |
|||
) |
string | $category | |
int | $item_id | |
string | $dirname | Module dirname |
Definition at line 96 of file helper.php.
References $dirname, $xoops, and Xoops\getInstance().
Notifications::getPluginableConfigs | ( | XoopsModule | $module | ) |
XoopsModule | $module |
Definition at line 540 of file helper.php.
References $configs, $options, getCategory(), getEvents(), and Xoops\Core\Kernel\XoopsObject\getVar().
Referenced by insertModuleRelations().
Notifications::getSubscribableCategories | ( | $module_dirname = null | ) |
Get an array of associative info arrays for subscribable categories for the selected module.
string | $module_dirname | ID of the module |
Definition at line 403 of file helper.php.
References $_SERVER, $id, and getCategory().
Notifications::getTags | ( | $category, | |
$item_id, | |||
$event, | |||
$dirname = null |
|||
) |
string | $category | |
int | $item_id | |
string | $event | |
string | $dirname | Module dirname |
Definition at line 118 of file helper.php.
References $dirname, $xoops, and Xoops\getInstance().
Notifications::init | ( | ) |
Init the module
Definition at line 26 of file helper.php.
References Xoops\Module\Helper\HelperAbstract\setDirname().
Notifications::insertModuleRelations | ( | XoopsModule | $module | ) |
XoopsModule | $module |
Definition at line 480 of file helper.php.
References $config, $config_handler, $configs, $xoops, Xoops\getInstance(), getPluginableConfigs(), and Xoops\Core\Kernel\XoopsObject\getVar().