UNA
BxDolFeature Class Reference
Inheritance diagram for BxDolFeature:
BxDolObject BxDolFactory iBxDolReplaceable BxBaseFeature BxTemplFeature

Public Member Functions

 actionFeature ()
 
 isAllowedFeature ($isPerformAction=false)
 
 isUndo ()
 
- Public Member Functions inherited from BxDolObject
 getConditions ($sMainTable, $sMainField)
 
 getQueryObject ()
 
 checkAction ($sAction, $isPerformAction=false)
 
 onObjectDelete ($iObjectId=0)
 

Static Public Member Functions

static getObjectInstance ($sSys, $iId, $iInit=true)
 

Protected Member Functions

 _doFeature ()
 
- Protected Member Functions inherited from BxDolObject
 _getAuthorId ()
 
 _trigger ()
 
 _triggerValue ($iValue)
 
 _replaceMarkers ($mixed)
 

Detailed Description

Track any object feature automatically

Add record to sys_object_feature table to track object feature, to record feature just create this class instance with your object id, for example:

BxDolFeature::getObjectInstance('my_system', 25); // 25 - is object id

Description of sys_object_feature table fields:

`name` - system name, it is better to use unique module prefix here, lowercase and all spaces are underscored
`table_track` - table to track feature
`is_on` - is the system activated
`trigger_table` - table where you need to update feature field
`trigger_field_id` - table field id to unique determine object
`trigger_field_count` - table field where the featuring date is stored
`class_name` - your custom class name, if you overrride default class
`class_file` - your custom class path

Member Function Documentation

◆ _doFeature()

BxDolFeature::_doFeature ( )
protected

Internal functions

◆ actionFeature()

BxDolFeature::actionFeature ( )

Actions functions

◆ getObjectInstance()

static BxDolFeature::getObjectInstance (   $sSys,
  $iId,
  $iInit = true 
)
static

get feature object instanse

Parameters
$sSysfeature object name
$iIdassociated content id, where feature is available
$iInitperform initialization
Returns
null on error, or ready to use class instance

◆ isAllowedFeature()

BxDolFeature::isAllowedFeature (   $isPerformAction = false)

Permissions functions

◆ isUndo()

BxDolFeature::isUndo ( )

Auxiliary functions


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