|
| actionFeature () |
| actionGetFeatureBy () |
| isAllowedFeature ($isPerformAction=false) |
| msgErrAllowedFeature () |
| isUndo () |
| doFeature () |
| init ($iId) |
| getSystemId () |
| getSystemName () |
| getSystemInfo () |
| getId () |
| setId ($iId) |
| isEnabled () |
| isPerformed ($iObjectId, $iAuthorId, $iAuthorIp=0) |
| getVote ($iObjectId=0, $bForceGet=false) |
| getTrack ($iObjectId, $iAuthorId) |
| getConditions ($sMainTable, $sMainField) |
| getConditionsTrack ($sMainTable, $sMainField, $iAuthorId=0) |
| getSqlParts ($sMainTable, $sMainField) |
| getSqlPartsTrack ($sMainTable, $sMainField, $iAuthorId=0) |
| getSqlPartsTrackAuthor ($sMainTable, $sMainField, $iObjectId=0) |
| addMarkers ($aMarkers) |
| getElementAPI ($aParams=[]) |
| getCounterAPI ($aParams=[]) |
| getQueryObject () |
| checkAction ($sAction, $isPerformAction=false) |
| checkActionErrorMsg ($sAction) |
| onObjectDelete ($iObjectId=0) |
|
| __construct ($sSystem, $iId, $iInit=true, $oTemplate=false) |
| _getIconDoFeature ($bPerformed) |
| _getTitleDoFeature ($bPerformed) |
| _getAuthorId () |
| _getAuthorPassword () |
| _getAuthorIp () |
| _getAuthorInfo ($iAuthorId=0) |
| _getAuthorObject ($iAuthorId=0) |
| _trigger () |
| _triggerValue ($iValue) |
| _replaceMarkers ($mixed) |
| _prepareParamsData ($aParams) |
| _getRequestParamsData ($aKeys=array()) |
| _prepareRequestParamsData ($aParams, $aParamsAdd=array()) |
| _getTmplContentElementBlock () |
| _getTmplContentElementInline () |
| _getTmplContentDoAction () |
| _getTmplContentDoActionLabel () |
| _getTmplContentCounter () |
| _getTmplContentCounterLabel () |
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:
static getObjectInstance($sSys, $iId, $iInit=true)
Definition BxDolFeature.php:67
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