|
| isUndo () |
|
| getBaseUrl () |
|
| getStatCounter () |
|
| getCountByStatus ($iStatus) |
|
| getSocketName () |
|
| actionReport () |
|
| actionClearReport () |
|
| actionGetReportedBy () |
|
| isAllowedReport ($isPerformAction=false) |
|
| msgErrAllowedReport () |
|
| isAllowedReportView ($isPerformAction=false) |
|
| changeStatusReport ($iStatus, $iAuthorId, $sCmtText) |
|
| msgErrAllowedReportView () |
|
| 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) |
|
| _isCount ($aVote=array()) |
|
| _getReport ($iObjectId=0, $bForceGet=false) |
|
| _isReport ($iObjectId=0, $bForceGet=false) |
|
| _getTrack ($iObjectId, $iAuthorId) |
|
| _getIconDoReport ($bPerformed) |
|
| _getTitleDoReport ($bPerformed) |
|
| _getFormObject () |
|
| _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 () |
|
Report any content
Related classes:
AJAX report for any content.
To add report section to your feature you need to add a record to 'sys_objects_report' table:
- id - autoincremented id for internal usage
- name - your unique module name, with vendor prefix, lowercase and spaces are underscored
- table_main - table name where summary reports are stored
- table_track - table name where each report is stored
- is_on - is this report object enabled
- base_url - base URL for reported object
- trigger_table - table to be updated upon each report
- trigger_field_id - trigger_table table field with unique record id, primary key
- trigger_field_author - trigger_table table field with author
- trigger_field_count - trigger_table table field with reports count
- class_name - your custom class name, if you overrride default class
- class_file - your custom class path
You can refer to BoonEx modules for sample record in this table.
Example of usage
You can show report in any place, using the following code:
if (!$o->isEnabled())
return '';
echo $o->getElementBlock();
static getObjectInstance($sSys, $iId, $iInit=true, $oTemplate=false)
Definition BxDolReport.php:131
Memberships/ACL:
Alerts(hooks)
Alerts type/unit - every module has own type/unit, it equals to ObjectName. The following alerts are rised:
- type: 'object name', action: doReport
- type: report, action: do