UNA
|
Public Member Functions | |
getConditionsTrack ($sMainTable, $sMainField, $iAuthorId=0, $iListId=0) | |
actionFavorite () | |
actionEditList () | |
actionDeleteList () | |
actionGetFavoritedBy () | |
isAllowedFavorite ($isPerformAction=false) | |
isAllowedEditList ($iAuthorId, $isPerformAction=false) | |
msgErrAllowedFavorite () | |
isAllowedFavoriteView ($isPerformAction=false) | |
msgErrAllowedFavoriteView () | |
isUndo () | |
isPublic () | |
doFavorite () | |
Public Member Functions inherited from BxDolObject | |
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) |
Static Public Member Functions | |
static | getObjectInstance ($sSys, $iId, $iInit=true) |
static & | getSystems () |
static | onAuthorDelete ($iAuthorId) |
Static Public Member Functions inherited from BxDolObject | |
static | pruning () |
Protected Member Functions | |
__construct ($sSystem, $iId, $iInit=true, $oTemplate=false) | |
_getFavorite ($iObjectId=0, $bForceGet=false) | |
_getIconDoFavorite ($bPerformed) | |
_getTitleDoFavorite ($bPerformed) | |
_getFormObject ($sDisplayName) | |
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 | |
$_sType | |
$_sBaseUrl | |
$_aFavorite | |
$_aElementDefaults | |
$_aElementDefaultsApi | |
$_aElementParamsApi | |
$_sFormObject | |
$_sFormDisplayAdd | |
$_sFormDisplayListEdit | |
Protected Attributes inherited from BxDolObject | |
$_oTemplate = null | |
$_oQuery = null | |
$_bApi = false | |
$_iId = 0 | |
$_sSystem = '' | |
$_aSystem = array() | |
$_aMarkers = array () | |
$_sTmplContentElementBlock = '' | |
$_sTmplContentElementInline = '' | |
$_sTmplContentDoAction | |
$_sTmplContentDoActionLabel = '' | |
$_sTmplContentCounter = '' | |
$_sTmplContentCounterLabel = '' |
Track any object favorites automatically
Add record to sys_object_favorite table to track object favorites, to record favorites just create this class instance with your object id, for example:
Description of sys_object_favorite table fields:
Structure of the track table is the following:
|
protected |
Reimplemented from BxDolObject.
BxDolFavorite::actionFavorite | ( | ) |
Actions functions
BxDolFavorite::doFavorite | ( | ) |
Internal functions
favorite
object_system
- [string] system name, ex: bx_postsobject_id
- [int] reported object idobject_author_id
- [int] author's profile_id for reported object_id
|
static |
get favorites object instanse
$sSys | favorite object name |
$iId | associated content id, where favorite is available |
$iInit | perform initialization |
|
static |
Reimplemented from BxDolObject.
BxDolFavorite::isAllowedFavorite | ( | $isPerformAction = false | ) |
Permissions functions
Reimplemented in BxOrgsFavorite, and BxPersonsFavorite.
BxDolFavorite::isUndo | ( | ) |
Auxiliary functions