|
Cheetah
|
Public Member Functions | |
| __construct () | |
| getMySubscriptions () | |
| getData ($bDynamic=false) | |
| getButton ($iUserId, $sUnit, $sAction='', $iObjectId=0) | |
| subscribeVisitor ($sUserName, $sUserEmail, $sUnit, $sAction, $iObjectId=0) | |
| unsubscribeVisitor ($sUserName, $sUserEmail, $sUnit, $sAction, $iObjectId=0) | |
| subscribeMember ($iUserId, $sUnit, $sAction, $iObjectId=0) | |
| unsubscribeMember ($iUserId, $sUnit, $sAction, $iObjectId=0) | |
| unsubscribe ($aParams) | |
| send ($sUnit, $sAction, $iObjectId=0, $aExtras=array()) | |
| getSubscribersCount ($iType=CH_WSB_SBS_TYPE_VISITOR) | |
| getSubscribers ($iType=CH_WSB_SBS_TYPE_VISITOR, $iStart=0, $iCount=1) | |
| _processMember ($sDirection, $iUserId, $sUnit, $sAction, $iObjectId) | |
| _processVisitor ($sDirection, $sUserName, $sUserEmail, $sUnit, $sAction, $iObjectId) | |
| _getJsCode () | |
| _getUnsubscribeLink ($mixedIds) | |
Static Public Member Functions | |
| static | getInstance () |
Public Attributes | |
| $_oDb | |
| $_bDataAdded | |
| $_sJsObject | |
| $_sActionUrl | |
| $_sVisitorPopup | |
Subscriptions for any content changes.
Integration of the content with subscriptions engine allows site member and visitors to subscribe to any content changes.
Related classes: ChWsbSubscriptionQuery - database queries.
Example of usage:
sys_sbs_types database table.sys_email_templates table.Add necessary HTML/JavaScript data on the page where the 'Subscribe' button would be displayed. Use the following code
$oSubscription = ChWsbSubscription::getInstance(); $oSubscription->getData();
Add Subscribe/Unsubscribe button using the following code.
$oSubscription = new ChWsbSubscription(); $oSubscription->getButton($iUserId, $sUnit, $sAction, $iObjectId);
Memberships/ACL: Doesn't depend on user's membership.
Alerts: no alerts available
Definition at line 47 of file ChWsbSubscription.php.
| ChWsbSubscription::__construct | ( | ) |
constructor
Definition at line 58 of file ChWsbSubscription.php.
| ChWsbSubscription::_getJsCode | ( | ) |
Definition at line 348 of file ChWsbSubscription.php.
| ChWsbSubscription::_getUnsubscribeLink | ( | $mixedIds | ) |
Definition at line 363 of file ChWsbSubscription.php.
| ChWsbSubscription::_processMember | ( | $sDirection, | |
| $iUserId, | |||
| $sUnit, | |||
| $sAction, | |||
| $iObjectId | |||
| ) |
Definition at line 324 of file ChWsbSubscription.php.
| ChWsbSubscription::_processVisitor | ( | $sDirection, | |
| $sUserName, | |||
| $sUserEmail, | |||
| $sUnit, | |||
| $sAction, | |||
| $iObjectId | |||
| ) |
Definition at line 335 of file ChWsbSubscription.php.
| ChWsbSubscription::getButton | ( | $iUserId, | |
| $sUnit, | |||
$sAction = '', |
|||
$iObjectId = 0 |
|||
| ) |
Definition at line 248 of file ChWsbSubscription.php.
| ChWsbSubscription::getData | ( | $bDynamic = false | ) |
Definition at line 156 of file ChWsbSubscription.php.
|
static |
Definition at line 67 of file ChWsbSubscription.php.
| ChWsbSubscription::getMySubscriptions | ( | ) |
Definition at line 75 of file ChWsbSubscription.php.
| ChWsbSubscription::getSubscribers | ( | $iType = CH_WSB_SBS_TYPE_VISITOR, |
|
$iStart = 0, |
|||
$iCount = 1 |
|||
| ) |
Definition at line 319 of file ChWsbSubscription.php.
| ChWsbSubscription::getSubscribersCount | ( | $iType = CH_WSB_SBS_TYPE_VISITOR | ) |
Definition at line 315 of file ChWsbSubscription.php.
| ChWsbSubscription::send | ( | $sUnit, | |
| $sAction, | |||
$iObjectId = 0, |
|||
$aExtras = array() |
|||
| ) |
Definition at line 307 of file ChWsbSubscription.php.
| ChWsbSubscription::subscribeMember | ( | $iUserId, | |
| $sUnit, | |||
| $sAction, | |||
$iObjectId = 0 |
|||
| ) |
Definition at line 273 of file ChWsbSubscription.php.
| ChWsbSubscription::subscribeVisitor | ( | $sUserName, | |
| $sUserEmail, | |||
| $sUnit, | |||
| $sAction, | |||
$iObjectId = 0 |
|||
| ) |
Definition at line 264 of file ChWsbSubscription.php.
| ChWsbSubscription::unsubscribe | ( | $aParams | ) |
Definition at line 281 of file ChWsbSubscription.php.
| ChWsbSubscription::unsubscribeMember | ( | $iUserId, | |
| $sUnit, | |||
| $sAction, | |||
$iObjectId = 0 |
|||
| ) |
Definition at line 277 of file ChWsbSubscription.php.
| ChWsbSubscription::unsubscribeVisitor | ( | $sUserName, | |
| $sUserEmail, | |||
| $sUnit, | |||
| $sAction, | |||
$iObjectId = 0 |
|||
| ) |
Definition at line 269 of file ChWsbSubscription.php.
| ChWsbSubscription::$_bDataAdded |
Definition at line 50 of file ChWsbSubscription.php.
| ChWsbSubscription::$_oDb |
Definition at line 49 of file ChWsbSubscription.php.
| ChWsbSubscription::$_sActionUrl |
Definition at line 52 of file ChWsbSubscription.php.
| ChWsbSubscription::$_sJsObject |
Definition at line 51 of file ChWsbSubscription.php.
| ChWsbSubscription::$_sVisitorPopup |
Definition at line 53 of file ChWsbSubscription.php.