, Jam Warehouse (Pty) Ltd, South Africa
* @package presentation.lookAndFeel.knowledgeTree.subscriptions
*/
/**
* Displays all current subscriptions with remove checkbox
*/
function renderManageSubscriptions() {
global $default;
// retrieve subscriptions for this user
$aSubscriptionList = SubscriptionManager::listSubscriptions($_SESSION["userID"]);
$sToRender = "
\n";
return $sToRender;
}
/**
* Confirms the users subscription deletion
*
* @param object the subscription
*/
function renderSubscriptionRemoveConfirmationPage($oSubscription) {
global $default;
$sContentType = $oSubscription->getSubscriptionTypeName();
if ($sContentType == "folder") {
$sContentName = Folder::getFolderName($oSubscription->getExternalID());
$sContentUrl = "fFolderID=" . $oSubscription->getExternalID();
} else {
$sContentName = Document::getDocumentName($oSubscription->getExternalID());
$sContentUrl = "fDocumentID=" . $oSubscription->getExternalID();
}
$sToRender = "\n";
return $sToRender;
}
/**
* Confirms the users subscription addition
*
* @param object the subscription
*/
function renderSubscriptionAddConfirmationPage($oSubscription) {
global $default;
$sContentType = $oSubscription->getSubscriptionTypeName();
if ($sContentType == "folder") {
$sContentName = Folder::getFolderName($oSubscription->getExternalID());
$sContentUrl = "fFolderID=" . $oSubscription->getExternalID();
} else {
$sContentName = Document::getDocumentName($oSubscription->getExternalID());
$sContentUrl = "fDocumentID=" . $oSubscription->getExternalID();
}
$sToRender = "\n";
return $sToRender;
}
function renderErrorPage($sErrorMessage) {
global $default;
return "$sErrorMessage
\n" .
"
graphicsUrl/widgets/back.gif\" border=\"0\"/>\n";
}
?>