UNA
Loading...
Searching...
No Matches
BxTasksTime Class Reference
Inheritance diagram for BxTasksTime:
BxTemplReport BxBaseReport BxDolReport BxDolObject BxDolFactory iBxDolReplaceable

Public Member Functions

 __construct ($sSystem, $iId, $iInit=true, $oTemplate=false)
 report ($aParams=[])
 isPerformed ($iObjectId, $iAuthorId, $iAuthorIp=0)
 putReport ($iObjectId, $iAuthorId, $mixedTrack, $bUndo=false)
Public Member Functions inherited from BxBaseReport
 getJsObjectName ()
 getJsScript ($bDynamicMode=false)
 getJsClick ()
 getCounter ($aParams=[])
 getCounterAPI ($aParams=[])
 getElementBlock ($aParams=array())
 getElementInline ($aParams=array())
 getElement ($aParams=array())
 getElementAPI ($aParams=[])
 getReportedByWithComments ($sObjectNotes)
 getPerformedByAPI ($aParams=[])
Public Member Functions inherited from BxDolReport
 isUndo ()
 isProcessible ()
 getBaseUrl ()
 getStatCounter ()
 getCountByStatus ($iStatus)
 getSocketName ()
 actionReport ()
 actionClearReport ()
 actionGetReportedBy ()
 isAllowedReport ($isPerformAction=false)
 msgErrAllowedReport ()
 isAllowedReportView ($isPerformAction=false)
 changeStatusReport ($iStatus, $iAuthorId, $sCmtText)
 msgErrAllowedReportView ()
Public Member Functions inherited from BxDolObject
 init ($iId)
 getSystemId ()
 getSystemName ()
 getSystemInfo ()
 getId ()
 setId ($iId)
 isEnabled ()
 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)
 getQueryObject ()
 checkAction ($sAction, $isPerformAction=false)
 checkActionErrorMsg ($sAction)
 onObjectDelete ($iObjectId=0)

Protected Member Functions

 _report ($bPerformed, $aParams, &$oForm)
 _returnReportData ($iObjectId, $iAuthorId, $iReportId, $aData, $bPerformed)
 _getReportedBy ()
 _getIconDoReport ($bPerformed)
 _getTitleDoReport ($bPerformed)
Protected Member Functions inherited from BxBaseReport
 _getDoReport ($aParams=array())
 _getCounterLabel ($iCount)
 _getLabelDoReport ($aParams=array())
 _returnReportDataForSocket ($aData, $aMask=[])
 _isShowDoReport ($aParams, $isAllowedReport, $isAllowedReportView, $bCount)
 _isShowCounter ($aParams, $isAllowedReport, $isAllowedReportView, $bCount)
Protected Member Functions inherited from BxDolReport
 _isCount ($aVote=array())
 _getReport ($iObjectId=0, $bForceGet=false)
 _isReport ($iObjectId=0, $bForceGet=false)
 _getTrack ($iObjectId, $iAuthorId)
 _getFormObject ()
Protected Member Functions inherited from BxDolObject
 _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 ()

Protected Attributes

 $_sModule
 $_oModule
Protected Attributes inherited from BxBaseReport
 $_bCssJsAdded
 $_sJsObjClass
 $_sJsObjName
 $_sStylePrefix
 $_aHtmlIds
 $_aElementDefaults
 $_aElementDefaultsApi
 $_aElementParamsApi
Protected Attributes inherited from BxDolReport
 $_oTemplate
 $_bUndo
 $_bProcessible
 $_sBaseUrl
 $_sObjectCmts
 $_sFormObject
 $_sFormDisplayPost
 $_sTypesPreList
 $_aTypes
 $_aReport
Protected Attributes inherited from BxDolObject
 $_oTemplate = null
 $_oQuery = null
 $_bApi = false
 $_iId = 0
 $_sSystem = ''
 $_aSystem = array()
 $_aMarkers = array ()
 $_sTmplContentElementBlock = ''
 $_sTmplContentElementInline = ''
 $_sTmplContentDoAction
 $_sTmplContentDoActionLabel = ''
 $_sTmplContentCounter = ''
 $_sTmplContentCounterLabel = ''

Additional Inherited Members

Static Public Member Functions inherited from BxDolReport
static getObjectInstance ($sSys, $iId, $iInit=true, $oTemplate=false)
static & getSystems ()
static onAuthorDelete ($iAuthorId)
Static Public Member Functions inherited from BxDolObject
static pruning ()

Constructor & Destructor Documentation

◆ __construct()

BxTasksTime::__construct ( $sSystem,
$iId,
$iInit = true,
$oTemplate = false )

Reimplemented from BxTemplReport.

Member Function Documentation

◆ _getIconDoReport()

BxTasksTime::_getIconDoReport ( $bPerformed)
protected

Reimplemented from BxDolReport.

◆ _getReportedBy()

BxTasksTime::_getReportedBy ( )
protected

Reimplemented from BxBaseReport.

◆ _getTitleDoReport()

BxTasksTime::_getTitleDoReport ( $bPerformed)
protected

Reimplemented from BxDolReport.

◆ _report()

BxTasksTime::_report ( $bPerformed,
$aParams,
& $oForm )
protected

Internal methods.

Hooks:

'favorite', 'favorite' - hook on add new object to favorites lists

  • $unit_name - equals report
  • $action - equals do
  • $object_id - report id
  • $sender_id - profile_id for report's author
  • $extra_params - array of additional params with the following array keys:
    • object_system - [string] system name, ex: bx_posts
    • object_id - [int] reported object id
    • object_author_id - [int] author's profile_id for reported object_id
    • type - [string] report type
    • text - [bool] report text
HOOKS
'favorite', 'favorite' - hook on add new object to favorites lists

Hooks:

'{module_name}', 'reported_content' - hook to notify admins/moderators about newly reported content

  • $unit_name - module name
  • $action - equals reported_content
  • $object_id - content id
  • $sender_id - report author profile id
  • $extra_params - array of additional params with the following array keys:
    • object_author_id - [int] admin/moderator profile id
    • report_id - [int] report id
    • report_type - [string] report type
    • report_text - [string] message attached to report
HOOKS
'{module_name}', 'reported_content' - hook to notify admins/moderators about newly reported content

Reimplemented from BxBaseReport.

◆ _returnReportData()

BxTasksTime::_returnReportData ( $iObjectId,
$iAuthorId,
$iReportId,
$aData,
$bPerformed )
protected

Reimplemented from BxBaseReport.

◆ isPerformed()

BxTasksTime::isPerformed ( $iObjectId,
$iAuthorId,
$iAuthorIp = 0 )

Should always return false to allow any number of time reports per user.

Reimplemented from BxDolObject.

◆ putReport()

BxTasksTime::putReport ( $iObjectId,
$iAuthorId,
$mixedTrack,
$bUndo = false )

Hooks:

'{module_name}', 'report_time' - hook on create new time report

  • $unit_name - module name
  • $action - equals report_time
  • $object_id - reported entry ID
  • $sender_id - profile id for report's author
  • $extra_params - array of additional params with the following array keys:
    • object_system - [string] system name
    • object_author_id - [int] author's profile_id for reported object_id
    • report_id - [int] report id
    • report_author_id - [int] profile id for report's author
    • type - [string] reported time
HOOKS
hook-bx_tasks-report_time

◆ report()

BxTasksTime::report ( $aParams = [])

Reimplemented from BxBaseReport.


The documentation for this class was generated from the following file:
  • modules/boonex/tasks/classes/BxTasksTime.php