Cheetah
|
Public Member Functions | |
__construct (&$aModule) | |
actionHome () | |
actionVideos ($sUri) | |
actionPhotos ($sUri) | |
actionComments ($sUri) | |
actionView ($sUri) | |
actionBroadcast ($iEntryId) | |
actionCalendar ($iYear='', $iMonth='') | |
actionSearch ($sKeyword='', $sCategory='') | |
actionAdd () | |
actionEdit ($iEntryId) | |
actionDelete ($iEntryId) | |
actionMarkFeatured ($iEntryId) | |
actionSharePopup ($iEntryId) | |
actionTags () | |
actionCategories () | |
actionToggleProductFileVisibility ($iFileId) | |
actionDownload ($iFileId) | |
serviceHomepageBlock () | |
serviceProfileBlock ($iProfileId) | |
serviceGetMemberMenuItem () | |
serviceGetMemberMenuItemAddContent () | |
serviceGetWallPost ($aEvent) | |
serviceGetWallAddComment ($aEvent) | |
serviceGetWallPostComment ($aEvent) | |
serviceGetWallPostOutline ($aEvent) | |
serviceGetSpyPost ($sAction, $iObjectId=0, $iSenderId=0, $aExtraParams=array()) | |
serviceGetSpyData () | |
serviceGetSubscriptionParams ($sAction, $iEntryId) | |
serviceGetItems ($iVendorId) | |
serviceGetPaymentData () | |
serviceGetCartItem ($iClientId, $iItemId) | |
serviceRegisterCartItem ($iClientId, $iSellerId, $iItemId, $iItemCount, $sOrderId) | |
serviceUnregisterCartItem ($iClientId, $iSellerId, $iItemId, $iItemCount, $sOrderId) | |
serviceDeleteProfileData ($iProfileId) | |
actionAdministration ($sUrl='') | |
actionAdministrationSettings () | |
actionAdministrationManage ($isAdminEntries=false, $sUrl='') | |
isEntryAdmin ($aDataEntry, $iIdProfile=0) | |
isAllowedView ($aDataEntry, $isPerformAction=false) | |
isAllowedBrowse ($isPerformAction=false) | |
isAllowedSearch ($isPerformAction=false) | |
isAllowedAdd ($isPerformAction=false) | |
isAllowedEdit ($aDataEntry, $isPerformAction=false) | |
isAllowedMarkAsFeatured ($aDataEntry, $isPerformAction=false) | |
isAllowedBroadcast ($aDataEntry, $isPerformAction=false) | |
isAllowedDelete (&$aDataEntry, $isPerformAction=false) | |
isAllowedActivate (&$aDataEntry, $isPerformAction=false) | |
isAllowedShare (&$aDataEntry) | |
isAllowedPurchase (&$aItem) | |
isAllowedPostInForum (&$aDataEntry, $iProfileId=-1) | |
isAllowedReadForum (&$aDataEntry, $iProfileId=-1) | |
isAllowedDownload (&$aItem) | |
isAllowedRate (&$aDataEntry) | |
isAllowedComments (&$aDataEntry) | |
isAllowedCreatorCommentsDeleteAndEdit (&$aEvent, $isPerformAction=false) | |
isCustomer ($aItem) | |
_defineActions () | |
getGroupName ($mixedId) | |
_browseMy (&$aProfile, $sTitle=null) | |
_formatPriceRange ($aData) | |
_formatSnippetTextForOutline ($aEntryData) | |
![]() | |
_actionHome ($sTitle) | |
_actionFiles ($sUri, $sTitle) | |
_actionVideos ($sUri, $sTitle) | |
_actionSounds ($sUri, $sTitle) | |
_actionPhotos ($sUri, $sTitle) | |
_actionComments ($sUri, $sTitle) | |
_actionBrowseFans ($sUri, $sFuncAllowed, $sFuncDbGetFans, $iPerPage, $sUrlBrowse, $sTitle) | |
_actionView ($sUri, $sMsgPendingApproval) | |
_actionUploadMedia ($sUri, $sIsAllowedFuncName, $sMedia, $aMediaFields, $sTitle) | |
_actionBroadcast ($iEntryId, $sTitle, $sMsgNoRecipients, $sMsgSent) | |
_getInviteParams ($aDataEntry, $aInviter) | |
_actionInvite ($iEntryId, $sEmailTemplate, $iMaxEmailInvitations, $sMsgInvitationSent, $sMsgNoUsers, $sTitle) | |
_actionCalendar ($iYear, $iMonth, $sTitle) | |
actionBrowse ($sMode='', $sValue='', $sValue2='', $sValue3='') | |
_actionSearch ($sKeyword, $sCategory, $sTitle) | |
_actionAdd ($sTitle) | |
_actionEdit ($iEntryId, $sTitle) | |
_actionDelete ($iEntryId, $sMsgSuccess) | |
_actionMarkFeatured ($iEntryId, $sMsgSuccessAdd, $sMsgSuccessRemove) | |
_actionJoin ($iEntryId, $iProfileId, $sMsgAlreadyJoined, $sMsgAlreadyJoinedPending, $sMsgJoinSuccess, $sMsgJoinSuccessPending, $sMsgLeaveSuccess) | |
actionActivate ($iEntryId) | |
_actionManageFansPopup ($iEntryId, $sTitle, $sFuncGetFans='getFans', $sFuncIsAllowedManageFans='isAllowedManageFans', $sFuncIsAllowedManageAdmins='isAllowedManageAdmins', $iMaxFans=1000) | |
_actionSharePopup ($iEntryId, $sTitle, $bAddTempleateExt=false) | |
_actionTags ($sTitle, $sTitleAllTags='') | |
_actionCategories ($sTitle) | |
_actionDownload ($aFileInfo, $sFieldMediaId) | |
serviceGetForumPermission ($iMemberId, $iForumId) | |
serviceResponseProfileDelete ($oAlert) | |
serviceResponseMediaDelete ($oAlert) | |
_serviceGetMemberMenuItem ($sTitle, $sAlt, $sIcon, $isExtraCount=true, $sLinkAppend='') | |
_serviceGetWallPost ($aEvent, &$aParams) | |
_serviceGetWallPostOutline ($aEvent, $sIcon, $aParams=array()) | |
_serviceGetWallAddComment ($aEvent, $aParams) | |
_serviceGetWallPostComment ($aEvent, $aParams) | |
serviceGetWallData () | |
_serviceGetSpyPost ($sAction, $iObjectId, $iSenderId, $aExtraParams, $aLangKeys) | |
serviceGetShoutboxData () | |
serviceIsFan ($iEntryId, $iProfileId=0) | |
serviceIsEntryAdmin ($iEntryId, $iProfileId=0) | |
_serviceIsSomebody ($sFunc, $iEntryId, $iProfileId=0) | |
_serviceGetSubscriptionParams ($sAction, $iEntryId, $aAction2Name) | |
_actionAdministrationSettings ($sSettingsCatName='') | |
_actionAdministrationManage ($isAdminEntries, $sKeyBtnDelete='', $sKeyBtnActivate='', $sUrl=false) | |
actionAdministrationCreateEntry () | |
reparseTags ($iEntryId) | |
reparseCategories ($iEntryId) | |
onEventCreate ($iEntryId, $sStatus, $aDataEntry=array()) | |
onEventChanged ($iEntryId, $sStatus) | |
onEventDeleted ($iEntryId, $aDataEntry=array()) | |
onEventMarkAsFeatured ($iEntryId, $aDataEntry) | |
onEventJoin ($iEntryId, $iProfileId, $aDataEntry) | |
_onEventJoinRequest ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate, $iMaxFans=1000) | |
_onEventJoinReject ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate) | |
_onEventFanRemove ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate) | |
_onEventFanBecomeAdmin ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate) | |
_onEventAdminBecomeFan ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate) | |
_onEventJoinConfirm ($iEntryId, $iProfileId, $aDataEntry, $sEmailTemplate) | |
isAdmin () | |
_addForm ($sRedirectUrl) | |
_manageEntries ($sMode, $sValue, $isFilter, $sFormName, $aButtons, $sAjaxPaginationBlockId='', $isMsgBoxIfEmpty=true, $iPerPage=0, $sUrlAdmin=false) | |
_preProductTabs ($sUri, $sSubTab='') | |
_processFansActions ($aDataEntry, $iMaxFans=1000) | |
_getCleanIdsArray ($sIds, $sDivider=',') | |
_profilesEdit (&$aProfiles, $isCenterContent=false, $aDataEntry=array()) | |
_notifyEmail ($sEmailTemplateName, $iRecipient, $aDataEntry) | |
isMembershipEnabledForImages () | |
isMembershipEnabledForVideos () | |
isMembershipEnabledForSounds () | |
isMembershipEnabledForFiles () | |
_isMembershipEnabledFor ($sMembershipActionConstant) | |
_formatSnippetText ($aEntryData, $iMaxLen=300) | |
![]() | |
__construct ($aModule) | |
isLogged () | |
getUserId () | |
getUserPassword () | |
getTitleKey ($sUri) | |
serviceGetBaseUrl () | |
Public Attributes | |
$_oPrivacyProduct | |
$_oPrivacyFile | |
$_aQuickCache = array() | |
![]() | |
$_iProfileId | |
$_sPrefix | |
$_sFilterName | |
![]() | |
$_aModule | |
$_oDb | |
$_oTemplate | |
$_oConfig | |
Additional Inherited Members | |
![]() | |
static | getInstance ($sClassName) |
static | getTitle ($sUri) |
Store module
This module allow users to post products, other members can downoad them for free or some price. Later customers can rate, comment and discuss products. Product can have photos, videos and files.
Profile's Wall: 'add product' event are displayed in profile's wall
Spy: The following qactivity is displayed for content_activity: add - new product was created change - product was chaned rate - somebody rated product commentPost - somebody posted review in product
Memberships/ACL: store view product - CH_STORE_VIEW_PRODUCT store browse - CH_STORE_BROWSE store search - CH_STORE_SEARCH store add product - CH_STORE_ADD_PRODUCT store edit any product - CH_STORE_EDIT_ANY_PRODUCT store delete any product - CH_STORE_DELETE_ANY_PRODUCT store mark as featured - CH_STORE_MARK_AS_FEATURED store approve aproduct - CH_STORE_APPROVE_PRODUCT store broadcast message - CH_STORE_BROADCAST_MESSAGE
Service methods:
Homepage block with different products
Profile block with user's products
Product's forum permissions (for internal usage only)
Member menu item for my products (for internal usage only)
Member menu item for add product (for internal usage only)
Alerts: Alerts type/unit - 'ch_store' The following alerts are rised
add - new product was added $iObjectId - product id $iSenderId - creator of product $aExtras['Status'] - status of added product
change - product's info was changed $iObjectId - product id $iSenderId - editor user id $aExtras['Status'] - status of changed product
delete - product was deleted $iObjectId - product id $iSenderId - deleter user id
mark_as_featured - product was marked/unmarked as featured $iObjectId - product id $iSenderId - performer id $aExtras['Featured'] - 1 - if product was marked as featured and 0 - if product was removed from featured
Definition at line 118 of file ChStoreModule.php.
ChStoreModule::__construct | ( | & | $aModule | ) |
Reimplemented from ChWsbTwigModule.
Definition at line 125 of file ChStoreModule.php.
ChStoreModule::_browseMy | ( | & | $aProfile, |
$sTitle = null |
|||
) |
Reimplemented from ChWsbTwigModule.
Definition at line 855 of file ChStoreModule.php.
ChStoreModule::_defineActions | ( | ) |
Definition at line 822 of file ChStoreModule.php.
ChStoreModule::_formatPriceRange | ( | $aData | ) |
Definition at line 860 of file ChStoreModule.php.
ChStoreModule::_formatSnippetTextForOutline | ( | $aEntryData | ) |
Reimplemented from ChWsbTwigModule.
Definition at line 873 of file ChStoreModule.php.
ChStoreModule::actionAdd | ( | ) |
Definition at line 180 of file ChStoreModule.php.
ChStoreModule::actionAdministration | ( | $sUrl = '' | ) |
Definition at line 538 of file ChStoreModule.php.
ChStoreModule::actionAdministrationManage | ( | $isAdminEntries = false , |
|
$sUrl = '' |
|||
) |
Definition at line 602 of file ChStoreModule.php.
ChStoreModule::actionAdministrationSettings | ( | ) |
Definition at line 597 of file ChStoreModule.php.
ChStoreModule::actionBroadcast | ( | $iEntryId | ) |
Definition at line 164 of file ChStoreModule.php.
ChStoreModule::actionCalendar | ( | $iYear = '' , |
|
$iMonth = '' |
|||
) |
Definition at line 170 of file ChStoreModule.php.
ChStoreModule::actionCategories | ( | ) |
Definition at line 212 of file ChStoreModule.php.
ChStoreModule::actionComments | ( | $sUri | ) |
Definition at line 154 of file ChStoreModule.php.
ChStoreModule::actionDelete | ( | $iEntryId | ) |
Definition at line 191 of file ChStoreModule.php.
ChStoreModule::actionDownload | ( | $iFileId | ) |
Definition at line 241 of file ChStoreModule.php.
ChStoreModule::actionEdit | ( | $iEntryId | ) |
Definition at line 185 of file ChStoreModule.php.
ChStoreModule::actionHome | ( | ) |
Definition at line 139 of file ChStoreModule.php.
ChStoreModule::actionMarkFeatured | ( | $iEntryId | ) |
Definition at line 196 of file ChStoreModule.php.
ChStoreModule::actionPhotos | ( | $sUri | ) |
Definition at line 149 of file ChStoreModule.php.
ChStoreModule::actionSearch | ( | $sKeyword = '' , |
|
$sCategory = '' |
|||
) |
Definition at line 175 of file ChStoreModule.php.
ChStoreModule::actionSharePopup | ( | $iEntryId | ) |
Definition at line 202 of file ChStoreModule.php.
ChStoreModule::actionTags | ( | ) |
Definition at line 207 of file ChStoreModule.php.
ChStoreModule::actionToggleProductFileVisibility | ( | $iFileId | ) |
Definition at line 217 of file ChStoreModule.php.
ChStoreModule::actionVideos | ( | $sUri | ) |
Definition at line 144 of file ChStoreModule.php.
ChStoreModule::actionView | ( | $sUri | ) |
Definition at line 159 of file ChStoreModule.php.
ChStoreModule::getGroupName | ( | $mixedId | ) |
Definition at line 839 of file ChStoreModule.php.
ChStoreModule::isAllowedActivate | ( | & | $aDataEntry, |
$isPerformAction = false |
|||
) |
Definition at line 723 of file ChStoreModule.php.
ChStoreModule::isAllowedAdd | ( | $isPerformAction = false | ) |
Definition at line 662 of file ChStoreModule.php.
ChStoreModule::isAllowedBroadcast | ( | $aDataEntry, | |
$isPerformAction = false |
|||
) |
Definition at line 701 of file ChStoreModule.php.
ChStoreModule::isAllowedBrowse | ( | $isPerformAction = false | ) |
Definition at line 640 of file ChStoreModule.php.
ChStoreModule::isAllowedComments | ( | & | $aDataEntry | ) |
Definition at line 795 of file ChStoreModule.php.
ChStoreModule::isAllowedCreatorCommentsDeleteAndEdit | ( | & | $aEvent, |
$isPerformAction = false |
|||
) |
Definition at line 800 of file ChStoreModule.php.
ChStoreModule::isAllowedDelete | ( | & | $aDataEntry, |
$isPerformAction = false |
|||
) |
Definition at line 712 of file ChStoreModule.php.
ChStoreModule::isAllowedDownload | ( | & | $aItem | ) |
Definition at line 775 of file ChStoreModule.php.
ChStoreModule::isAllowedEdit | ( | $aDataEntry, | |
$isPerformAction = false |
|||
) |
Definition at line 676 of file ChStoreModule.php.
ChStoreModule::isAllowedMarkAsFeatured | ( | $aDataEntry, | |
$isPerformAction = false |
|||
) |
Definition at line 690 of file ChStoreModule.php.
ChStoreModule::isAllowedPostInForum | ( | & | $aDataEntry, |
$iProfileId = -1 |
|||
) |
Definition at line 755 of file ChStoreModule.php.
ChStoreModule::isAllowedPurchase | ( | & | $aItem | ) |
Definition at line 746 of file ChStoreModule.php.
ChStoreModule::isAllowedRate | ( | & | $aDataEntry | ) |
Definition at line 790 of file ChStoreModule.php.
ChStoreModule::isAllowedReadForum | ( | & | $aDataEntry, |
$iProfileId = -1 |
|||
) |
Definition at line 765 of file ChStoreModule.php.
ChStoreModule::isAllowedSearch | ( | $isPerformAction = false | ) |
Definition at line 651 of file ChStoreModule.php.
ChStoreModule::isAllowedShare | ( | & | $aDataEntry | ) |
Definition at line 737 of file ChStoreModule.php.
ChStoreModule::isAllowedView | ( | $aDataEntry, | |
$isPerformAction = false |
|||
) |
Definition at line 622 of file ChStoreModule.php.
ChStoreModule::isCustomer | ( | $aItem | ) |
Definition at line 814 of file ChStoreModule.php.
ChStoreModule::isEntryAdmin | ( | $aDataEntry, | |
$iIdProfile = 0 |
|||
) |
Definition at line 613 of file ChStoreModule.php.
ChStoreModule::serviceDeleteProfileData | ( | $iProfileId | ) |
Reimplemented from ChWsbTwigModule.
Definition at line 528 of file ChStoreModule.php.
ChStoreModule::serviceGetCartItem | ( | $iClientId, | |
$iItemId | |||
) |
Definition at line 481 of file ChStoreModule.php.
ChStoreModule::serviceGetItems | ( | $iVendorId | ) |
Definition at line 449 of file ChStoreModule.php.
ChStoreModule::serviceGetMemberMenuItem | ( | ) |
Definition at line 334 of file ChStoreModule.php.
ChStoreModule::serviceGetMemberMenuItemAddContent | ( | ) |
Definition at line 339 of file ChStoreModule.php.
ChStoreModule::serviceGetPaymentData | ( | ) |
Definition at line 476 of file ChStoreModule.php.
ChStoreModule::serviceGetSpyData | ( | ) |
Reimplemented from ChWsbTwigModule.
Definition at line 415 of file ChStoreModule.php.
ChStoreModule::serviceGetSpyPost | ( | $sAction, | |
$iObjectId = 0 , |
|||
$iSenderId = 0 , |
|||
$aExtraParams = array() |
|||
) |
Definition at line 405 of file ChStoreModule.php.
ChStoreModule::serviceGetSubscriptionParams | ( | $sAction, | |
$iEntryId | |||
) |
Definition at line 438 of file ChStoreModule.php.
ChStoreModule::serviceGetWallAddComment | ( | $aEvent | ) |
Definition at line 369 of file ChStoreModule.php.
ChStoreModule::serviceGetWallPost | ( | $aEvent | ) |
Definition at line 349 of file ChStoreModule.php.
ChStoreModule::serviceGetWallPostComment | ( | $aEvent | ) |
DEPRICATED, saved for backward compatibility
Definition at line 382 of file ChStoreModule.php.
ChStoreModule::serviceGetWallPostOutline | ( | $aEvent | ) |
Definition at line 392 of file ChStoreModule.php.
ChStoreModule::serviceHomepageBlock | ( | ) |
Definition at line 260 of file ChStoreModule.php.
ChStoreModule::serviceProfileBlock | ( | $iProfileId | ) |
Definition at line 317 of file ChStoreModule.php.
ChStoreModule::serviceRegisterCartItem | ( | $iClientId, | |
$iSellerId, | |||
$iItemId, | |||
$iItemCount, | |||
$sOrderId | |||
) |
Definition at line 502 of file ChStoreModule.php.
ChStoreModule::serviceUnregisterCartItem | ( | $iClientId, | |
$iSellerId, | |||
$iItemId, | |||
$iItemCount, | |||
$sOrderId | |||
) |
Definition at line 523 of file ChStoreModule.php.
ChStoreModule::$_aQuickCache = array() |
Definition at line 123 of file ChStoreModule.php.
ChStoreModule::$_oPrivacyFile |
Definition at line 121 of file ChStoreModule.php.
ChStoreModule::$_oPrivacyProduct |
Definition at line 120 of file ChStoreModule.php.