eZPublish  3.8
updatetipafriendpolicy.php File Reference

Variables

 $anonymousUser = eZUser::fetch( $anonymousUserID )
 
 $anonymousUserID = $siteIni->variable( 'UserSettings', 'AnonymousUserID' )
 
 $anonymousUsers = array()
 
 $cli =& eZCLI::instance()
 
 $contentIni =& eZINI::instance( 'content.ini' )
 
 $options
 
 $role = eZRole::fetchByName( $roleName )
 
 $roleName = 'Tipafriend Role'
 
 $script
 
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
 
 $siteIni =& eZINI::instance( 'site.ini' )
 
 $stdin = fopen( "php://stdin", "r+" )
 
 $topUserNodes =& eZContentObjectTreeNode::subTree( array( 'Depth' => 1 ), $userRootNodeID )
 
 $userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )
 
 $usersToAssign = array()
 
if(is_object($role)) else
 
 if (is_object($anonymousUser))
 

Variable Documentation

$anonymousUser = eZUser::fetch( $anonymousUserID )
$anonymousUserID = $siteIni->variable( 'UserSettings', 'AnonymousUserID' )
$anonymousUsers = array()
$cli =& eZCLI::instance()
$contentIni =& eZINI::instance( 'content.ini' )
$options
Initial value:
= $script->getOptions( '', '', false, false,
array( 'siteaccess' => true,
'user' => true ) )
$script
Definition: clusterize.php:132
$role = eZRole::fetchByName( $roleName )
$roleName = 'Tipafriend Role'
$script
Initial value:
=& eZScript::instance( array( 'description' => "\nThis script is optional for upgrading to 3.10.\n" .
"The script adds a role which contains a policy 'content/tipafriend' and" .
"\nassigns this role to all user groups except anonymous. That will give " .
"\npossibility to use tipafriend view for all users except anonymous." .
"\n\nNote: siteacces, login and password options are required and" .
"\nmust to be set to admin siteaccess and admin login/passsword accordingly" .
"\n\n(See doc/feature/(3.8|3.9|3.10)/content_tipafriend_policy.txt for more information).",
'use-session' => false,
'use-modules' => false,
'use-extensions' => true ) )
& instance($settings=array())
Definition: ezscript.php:1011
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
$stdin = fopen( "php://stdin", "r+" )
$topUserNodes =& eZContentObjectTreeNode::subTree( array( 'Depth' => 1 ), $userRootNodeID )
$userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )
$usersToAssign = array()
if (count($usersToAssign) > 0) else
Initial value:
{
$userInput = ''
if(is_object($anonymousUser))