XOOPS  2.6.0
Notifications Class Reference
Inheritance diagram for Notifications:
Inheritance graph

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
 

Detailed Description

Author
trabis lusop.nosp@m.oema.nosp@m.s@gma.nosp@m.il.c.nosp@m.om
Version
$Id$

Definition at line 19 of file helper.php.

Member Function Documentation

Notifications::deleteModuleRelations ( XoopsModule  $module)
Parameters
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().

Here is the call graph for this function:

Notifications::enabled (   $style,
  $module_dirname = null 
)
Parameters
string$style
null | string$module_dirname
Returns
bool

Definition at line 66 of file helper.php.

References $status, $xoops, and Xoops\getInstance().

Here is the call graph for this function:

Notifications::eventEnabled ( $category,
$event,
  $dirname 
)

Determine whether a particular notification event is enabled. Depends on module config options.

Todo:
Check that this works correctly for comment and other events which depend on additional config options...
Parameters
array&$categoryCategory info array
array&$eventEvent info array
string$dirnameModule
Returns
bool

Definition at line 359 of file helper.php.

References $dirname, $xoops, generateConfig(), and Xoops\getInstance().

Referenced by getEvents().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
array&$categoryArray of category info
array&$eventArray of event info
string$typeThe particular name to generate
Returns
bool|string

Definition at line 461 of file helper.php.

References $type.

Referenced by eventEnabled().

Here is the caller graph for this function:

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.

Parameters
string$category_nameCategory name (default all categories)
string$dirnameID of the module (default current module)
Returns
mixed

Definition at line 142 of file helper.php.

References $dirname, $xoops, and Xoops\getInstance().

Referenced by getCommentsCategory(), getEvents(), getPluginableConfigs(), and getSubscribableCategories().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
string$dirnameDirname of the module (default current module)
Returns
mixed Associative array of category info

Definition at line 174 of file helper.php.

References $dirname, getCategory(), and getEvents().

Here is the call graph for this function:

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).

Parameters
string$category_nameNotification category
string$event_nameNotification event
string$module_dirnameDirname of the module (default current module)
Returns
mixed

Definition at line 384 of file helper.php.

References getEvents().

Here is the call graph for this function:

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.

Parameters
string$category_nameCategory name
bool$enabled_onlyIf true, return only enabled events
string$dirnameDirname of the module (default current module)
Returns
mixed

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Notifications::getHandlerNotification ( )
Returns
NotificationsNotificationHandler

Definition at line 55 of file helper.php.

References Xoops\Module\Helper\HelperAbstract\getHandler().

Referenced by deleteModuleRelations().

Here is the call graph for this function:

Here is the caller graph for this function:

Notifications::getItem (   $category,
  $item_id,
  $dirname = null 
)
Parameters
string$category
int$item_id
string$dirnameModule dirname
Returns
array!bool

Definition at line 96 of file helper.php.

References $dirname, $xoops, and Xoops\getInstance().

Here is the call graph for this function:

Notifications::getPluginableConfigs ( XoopsModule  $module)
Parameters
XoopsModule$module
Returns
array

Definition at line 540 of file helper.php.

References $configs, $options, getCategory(), getEvents(), and Xoops\Core\Kernel\XoopsObject\getVar().

Referenced by insertModuleRelations().

Here is the call graph for this function:

Here is the caller graph for this function:

Notifications::getSubscribableCategories (   $module_dirname = null)

Get an array of associative info arrays for subscribable categories for the selected module.

Parameters
string$module_dirnameID of the module
Returns
mixed

Definition at line 403 of file helper.php.

References $_SERVER, $id, and getCategory().

Here is the call graph for this function:

Notifications::getTags (   $category,
  $item_id,
  $event,
  $dirname = null 
)
Parameters
string$category
int$item_id
string$event
string$dirnameModule dirname
Returns
array!bool

Definition at line 118 of file helper.php.

References $dirname, $xoops, and Xoops\getInstance().

Here is the call graph for this function:

Notifications::init ( )

Init the module

Returns
null|void

Definition at line 26 of file helper.php.

References Xoops\Module\Helper\HelperAbstract\setDirname().

Here is the call graph for this function:

Notifications::insertModuleRelations ( XoopsModule  $module)
Parameters
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().

Here is the call graph for this function:


The documentation for this class was generated from the following file: