eZPublish  4.4
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 = $http->postVariable( 'RedirectURI', $http->sessionVariable( 'LastAccessesURI', '/' ) )
 
 $Result = array()
 
 $Result ['content'] = $tpl->fetch( 'design:notification/addingresult.tpl' )
 
 $Result ['path']
 
if(!$contentNode) if(!$contentNode->
attribute( 'can_read')) 
$tpl = eZTemplate::factory()
 
 $user = eZUser::currentUser()
 
 $viewMode = $http->hasPostVariable( 'ViewMode' ) ? $http->postVariable( 'ViewMode' ) : 'full'
 

Variable Documentation

$alreadyExists = true
$module = $Params['Module']
$nodeID = $Params['ContentNodeID']
$redirectURI = $http->postVariable( 'RedirectURI', $http->sessionVariable( 'LastAccessesURI', '/' ) )
$Result = array()
$Result['content'] = $tpl->fetch( 'design:notification/addingresult.tpl' )
$Result['path']
Initial value:
= array( array( 'text' => ezpI18n::tr( 'kernel/notification', ($alreadyExists ? 'Notification already exists.' : 'Notification was added successfully!') ),
'url' => false ) )
$alreadyExists
Definition: addtonotification.php:76
static tr($context, $source, $comment=null, $arguments=null)
Translates the source $source with context $context and optional comment $comment and returns the tra...
Definition: ezpi18n.php:88
if (!$contentNode) if (!$contentNode->attribute( 'can_read')) $tpl = eZTemplate::factory()
$viewMode = $http->hasPostVariable( 'ViewMode' ) ? $http->postVariable( 'ViewMode' ) : 'full'