eZ Publish  [trunk]
updatetipafriendpolicy.php File Reference

Go to the source code of this file.

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' )
if(is_object($anonymousUser)) $topUserNodes = eZContentObjectTreeNode::subTreeByNodeID( array( 'Depth' => 1 ), $userRootNodeID )
 $userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )

Variable Documentation

$anonymousUser = eZUser::fetch( $anonymousUserID )

Definition at line 41 of file updatetipafriendpolicy.php.

$anonymousUserID = $siteIni->variable( 'UserSettings', 'AnonymousUserID' )

Definition at line 40 of file updatetipafriendpolicy.php.

Referenced by eZOrder\customerList(), and eZUser\instance().

$anonymousUsers = array()

Definition at line 42 of file updatetipafriendpolicy.php.

$cli = eZCLI::instance()

Definition at line 12 of file updatetipafriendpolicy.php.

$contentIni = eZINI::instance( 'content.ini' )

Definition at line 36 of file updatetipafriendpolicy.php.

$options
Initial value:
 $script->getOptions( '', '', false, false,
                                array( 'siteaccess' => true,
                                       'user' => true ) )

Definition at line 26 of file updatetipafriendpolicy.php.

$role = eZRole::fetchByName( $roleName )

Definition at line 60 of file updatetipafriendpolicy.php.

if (count($topUserNodes)==0) $roleName = 'Tipafriend Role'

Definition at line 59 of file updatetipafriendpolicy.php.

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 ) )

Definition at line 14 of file updatetipafriendpolicy.php.

$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false

Definition at line 30 of file updatetipafriendpolicy.php.

if (is_object($anonymousUser)) $topUserNodes = eZContentObjectTreeNode::subTreeByNodeID( array( 'Depth' => 1 ), $userRootNodeID )

Definition at line 49 of file updatetipafriendpolicy.php.

$userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' )

Definition at line 37 of file updatetipafriendpolicy.php.