UNA
BxDolContentInfo Class Reference
Inheritance diagram for BxDolContentInfo:
BxDolFactory iBxDolFactoryObject BxAlbumsContentInfoMedia BxDolContentInfoCmts

Static Public Member Functions

static getObjectInstance ($sSystem)
 
static getObjectInstanceByAlertCommon ($sAlertType, $sUnit, $sAction)
 
static getObjectInstanceByGrid ($sGrid)
 

Detailed Description

Get content info from Content modules

Add record to sys_objects_content_info table to provide unified access to module's content, to get content info just create an instance of this class and request content info by id, for example:

BxDolContentInfo::getObjectInstance('my_system')->getInfo(25); // 25 - is object id

Description of sys_objects_content_info table fields:

`name` - system name, it is better to use unique module prefix here, lowercase and all spaces are underscored
`alert_unit` - unit name of the alert which will be fired
`alert_action_add` - action name of the alert which is fired after a content was added
`alert_action_update` - action name of the alert which is fired after a content was updated
`alert_action_delete` - action name of the alert which is fired after a content was deleted
`class_name` - your custom class name, if you overrride default class
`class_file` - your custom class path

Member Function Documentation

◆ getObjectInstance()

static BxDolContentInfo::getObjectInstance (   $sSystem)
static

get content info object instance

Parameters
$sSystemview object name
Returns
null on error, or ready to use class instance

Implements iBxDolFactoryObject.

◆ getObjectInstanceByAlertCommon()

static BxDolContentInfo::getObjectInstanceByAlertCommon (   $sAlertType,
  $sUnit,
  $sAction 
)
static

get content info object instance (for internal usage).

See also
self::getObjectInstanceByAlertAdd, self::getObjectInstanceByAlertUpdate and self::getObjectInstanceByAlertDelete
Parameters
$sAlertTypealert type (add, update, delete)
$sUnitalert unit
$sActionalert action
Returns
null on error, or ready to use class instance

◆ getObjectInstanceByGrid()

static BxDolContentInfo::getObjectInstanceByGrid (   $sGrid)
static

get content info object instance (for internal usage).

See also
self::getObjectInstanceByAlertAdd, self::getObjectInstanceByAlertUpdate and self::getObjectInstanceByAlertDelete
Parameters
$sAlertTypealert type (add, update, delete)
$sUnitalert unit
$sActionalert action
Returns
null on error, or ready to use class instance

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