eZPublish  3.8
addtonotification.php File Reference

Variables

 $alreadyExists = true
 
if(!$user->isLoggedIn()) $contentNode = eZContentObjectTreeNode::fetch( $nodeID )
 
 $http =& eZHTTPTool::instance()
 
 $module =& $Params['Module']
 
 $nodeID =& $Params['ContentNodeID']
 
 $nodeIDList = eZSubtreeNotificationRule::fetchNodesForUserID( $user->attribute( 'contentobject_id' ), false )
 
 $redirectURI = ''
 
 $Result = array()
 
 $Result ['content'] =& $tpl->fetch( 'design:notification/addingresult.tpl' )
 
 $Result ['path']
 
if(!$contentNode) if(!$contentNode->
attribute( 'can_read')) 
$tpl =& templateInit()
 
 $user =& eZUser::currentUser()
 
else $viewMode = 'full'
 

Variable Documentation

$alreadyExists = true
$module =& $Params['Module']
$nodeID =& $Params['ContentNodeID']
$redirectURI = ''
$Result = array()
$Result['content'] =& $tpl->fetch( 'design:notification/addingresult.tpl' )
$Result['path']
Initial value:
= array( array( 'text' => ezi18n( 'kernel/notification', ($alreadyExists ? 'Notification already exists.' : 'Notification was added successfully!') ),
'url' => false ) )
$alreadyExists
Definition: addtonotification.php:85
if (!$contentNode) if (!$contentNode->attribute( 'can_read')) $tpl =& templateInit()
$user =& eZUser::currentUser()
else $viewMode = 'full'