UNA
Loading...
Searching...
No Matches
BxDolContentInfo Class Reference
Inheritance diagram for BxDolContentInfo:
BxDolFactory iBxDolFactoryObject BxAlbumsContentInfoMedia BxDolContentInfoCmts

Public Member Functions

 setGrid ($aGrid)
 
 setIgnoreCacheInServiceCalls ($b)
 
 getName ()
 
 getTitle ()
 
 getGrid ()
 
 getContentAuthor ($iContentId)
 
 getContentDateAdded ($iContentId)
 
 getContentDateChanged ($iContentId)
 
 getContentTitle ($iContentId)
 
 getContentThumb ($iContentId)
 
 getContentCover ($iContentId)
 
 getContentLink ($iContentId)
 
 getContentText ($iContentId)
 
 getContentPrivacy ($iContentId)
 
 getContentEmbed ($iContentId)
 
 getContentInfo ($iContentId, $bSearchableFieldsOnly=true)
 
 getContentInfoAPI ($iContentId, $bExtendedUnits=false)
 
 getContentSearchResultUnit ($iContentId, $sUnitTemplate='')
 
 getAll ($aParams=array())
 
 getSearchableFieldsExtended ()
 
 getSortableFieldsExtended ()
 
 getSearchResultExtended ($aParams, $iStart=0, $iPerPage=0, $bFilterMode=false)
 

Static Public Member Functions

static getObjectInstance ($sSystem)
 
static getObjectInstanceByAlertCommon ($sAlertType, $sUnit, $sAction)
 
static getObjectInstanceByAlertAdd ($sUnit, $sAction)
 
static getObjectInstanceByAlertUpdate ($sUnit, $sAction)
 
static getObjectInstanceByAlertDelete ($sUnit, $sAction)
 
static getObjectInstanceByGrid ($sGrid)
 
static & getSystems ()
 
static & getGrids ()
 
static & getSystemsByAlertType ($sAlertType)
 
static formatFields ($aContentInfo)
 

Protected Member Functions

 __construct ($sSystem)
 
 _call ($sMethod)
 

Protected Attributes

 $_oQuery
 
 $_sSystem
 
 $_aSystem
 
 $_aGrid
 
 $_bIgnoreCacheInServiceCalls = false
 

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
static getObjectInstance($sSystem)
Definition BxDolContentInfo.php:62

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: