|
eZ Publish
[4.2]
|
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' ) | |
| $anonymousUser = eZUser::fetch( $anonymousUserID ) |
Definition at line 61 of file updatetipafriendpolicy.php.
| $anonymousUserID = $siteIni->variable( 'UserSettings', 'AnonymousUserID' ) |
Definition at line 60 of file updatetipafriendpolicy.php.
Referenced by eZOrder\customerList(), and eZUser\instance().
| $anonymousUsers = array() |
Definition at line 62 of file updatetipafriendpolicy.php.
| $cli = eZCLI::instance() |
Definition at line 32 of file updatetipafriendpolicy.php.
| $contentIni = eZINI::instance( 'content.ini' ) |
Definition at line 56 of file updatetipafriendpolicy.php.
Referenced by eZSimplifiedXMLInput\eZSimplifiedXMLInput(), eZXMLInputParser\eZXMLInputParser(), and eZUser\fetchUserGroupClassNames().
| $options |
$script->getOptions( '', '', false, false, array( 'siteaccess' => true, 'user' => true ) )
Definition at line 46 of file updatetipafriendpolicy.php.
| $role = eZRole::fetchByName( $roleName ) |
Definition at line 80 of file updatetipafriendpolicy.php.
Referenced by eZSiteInstaller\addPoliciesForRole(), eZPackage\appendFile(), eZPackage\appendMaintainer(), eZSiteInstaller\assignUserToRole(), eZRole\create(), eZRole\createNew(), eZSiteInstaller\createSiteAccess(), eZRole\fetchByUser(), eZRole\fetchRolesByLimitation(), eZRole\fetchUserByRole(), eZFilePackageHandler\fileExists(), eZFilePackageHandler\handleParameters(), eZFilePackageHandler\iniMatch(), eZSiteInstaller\removePoliciesForRole(), eZRole\removeTemporary(), eZFilePackageHandler\roleExists(), and eZSiteInstaller\updateRoles().
| if (count($topUserNodes)==0) $roleName = 'Tipafriend Role' |
Definition at line 79 of file updatetipafriendpolicy.php.
Referenced by eZSiteInstaller\addPoliciesForRole(), eZSiteInstaller\assignUserToRole(), eZRole\create(), eZRole\fetchByName(), eZPackage\fetchMaintainerRoleList(), eZPackage\maintainerRoleListForRoles(), eZSiteInstaller\removePoliciesForRole(), and eZSiteInstaller\updateRoles().
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 34 of file updatetipafriendpolicy.php.
| $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false |
Definition at line 50 of file updatetipafriendpolicy.php.
| $siteIni = eZINI::instance( 'site.ini' ) |
Definition at line 59 of file updatetipafriendpolicy.php.
Referenced by eZOrder\customerList(), and eZContentObject\isObjectRelationTyped().
| if (is_object($anonymousUser)) $topUserNodes = eZContentObjectTreeNode::subTreeByNodeID( array( 'Depth' => 1 ), $userRootNodeID ) |
Definition at line 69 of file updatetipafriendpolicy.php.
| $userRootNodeID = $contentIni->variable( 'NodeSettings', 'UserRootNode' ) |
Definition at line 57 of file updatetipafriendpolicy.php.