eZPublishCommunityProject(LegacyStack)  2013.6
updatetipafriendpolicy.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

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 )
 
if(count($topUserNodes)==0) $roleName = 'Tipafriend Role'
 
 $script
 
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
 
 $siteIni = eZINI::instance( 'site.ini' )
 
 $stdin = fopen( "php://stdin", "r+" )
 
if(is_object($anonymousUser)) $topUserNodes = eZContentObjectTreeNode::subTreeByNodeID( array( 'Depth' => 1 ), $userRootNodeID )
 
 $userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )
 
 $usersToAssign = array()
 
if(is_object($role)) else
 

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: adddefaultstates.php:22
$role = eZRole::fetchByName( $roleName )
if (count($topUserNodes)==0) $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 ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
$stdin = fopen( "php://stdin", "r+" )

Referenced by getUserInput().

if (is_object($anonymousUser)) $topUserNodes = eZContentObjectTreeNode::subTreeByNodeID( array( 'Depth' => 1 ), $userRootNodeID )
$userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )
$usersToAssign = array()
if (count($usersToAssign) > 0) else
Initial value:
{
$userInput = ''