eZPublishCommunityProject(LegacyStack)  2013.6
policyedit.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 processDropdownLimitations (&$policy, $currentModule, $currentFunction, $currentFunctionLimitations)
 Applies the POST submitted limitations as found in the dropdowns. More...
 

Variables

 $currentFunction = $policy->attribute( 'function_name' )
 
 $currentFunctionLimitations = array()
 
if($http->hasPostVariable(
'DiscardChange')) if($http->
hasPostVariable( 'UpdatePolicy'))
if($http->hasPostVariable(
'BrowseLimitationNodeButton'))
if($http->hasPostVariable(
'BrowseLimitationSubtreeButton'))
if($http->hasPostVariable(
'SelectedNodeIDArray') and
$http->postVariable(
'BrowseActionName')==
'FindLimitationNode'and!$http->
hasPostVariable(
'BrowseCancelButton')) if($http->
hasPostVariable(
'SelectedNodeIDArray') and
$http->postVariable(
'BrowseActionName')==
'FindLimitationSubtree'and!$http->
hasPostVariable(
'BrowseCancelButton')) 
$currentLimitationList = array()
 
if($policy===null) $currentModule = $policy->attribute( 'module_name' )
 
 $functions = $mod->attribute( 'available_functions' )
 
if(isset($functions[$currentFunction])&&$functions[$currentFunction]) $http = eZHTTPTool::instance()
 
foreach($currentFunctionLimitations
as $currentFunctionLimitation) 
$limitationList = eZPolicyLimitation::fetchByPolicyID( $policyID )
 
 $limitationValueList = $policy->limitationList()
 
 $Module = $Params['Module']
 
if($http->hasPostVariable(
'DeleteNodeButton')) if($http->
hasPostVariable(
'DeleteSubtreeButton')) 
$nodeIDList = array()
 
 $nodeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Node' )
 
 $nodeList = array()
 
 $originalPolicyID = $policy->attribute( 'original_id' )
 
 $policy = eZPolicy::fetchTemporaryCopy( $policyID )
 
 $policyID = $Params['PolicyID']
 
 $Result = array()
 
 $Result ['path']
 
 $Result ['content'] = $tpl->fetch( 'design:role/policyedit.tpl' )
 
 $role = eZRole::fetch( $roleID )
 
 $roleID = $policy->attribute( 'role_id' )
 
 $roleName = $role->attribute( 'name' )
 
if($nodeLimitation!=null) $subtreeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Subtree' )
 
 $subtreeList = array()
 
 $tpl = eZTemplate::factory()
 
if($currentModule== '*' else )
 

Function Documentation

processDropdownLimitations ( $policy,
  $currentModule,
  $currentFunction,
  $currentFunctionLimitations 
)

Applies the POST submitted limitations as found in the dropdowns.

Parameters
eZPolicy$policy
string$currentModule
string$currentFunction
array$currentFunctionLimitations
Returns
bool True if limitations were found, false otherwise

Variable Documentation

$currentFunction = $policy->attribute( 'function_name' )
$currentFunctionLimitations = array()
if ($http->hasPostVariable( 'DiscardChange')) if ($http->hasPostVariable( 'UpdatePolicy')) if ($http->hasPostVariable( 'BrowseLimitationNodeButton')) if ($http->hasPostVariable( 'BrowseLimitationSubtreeButton')) if ($http->hasPostVariable( 'SelectedNodeIDArray') and $http->postVariable( 'BrowseActionName')== 'FindLimitationNode'and!$http->hasPostVariable( 'BrowseCancelButton')) if ($http->hasPostVariable( 'SelectedNodeIDArray') and $http->postVariable( 'BrowseActionName')== 'FindLimitationSubtree'and!$http->hasPostVariable( 'BrowseCancelButton')) $currentLimitationList = array()
if ($policy===null) $currentModule = $policy->attribute( 'module_name' )
if (isset($functions[$currentFunction])&&$functions[$currentFunction]) $http = eZHTTPTool::instance()
$Module = $Params['Module']
if ($http->hasPostVariable( 'DeleteNodeButton')) if ($http->hasPostVariable( 'DeleteSubtreeButton')) $nodeIDList = array()
$nodeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Node' )
$originalPolicyID = $policy->attribute( 'original_id' )
$Result = array()
$Result['path']
Initial value:
= array( array( 'url' => false,
'text' => ezpI18n::tr( 'kernel/role', 'Editing policy' ) ) )
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:86
$Result['content'] = $tpl->fetch( 'design:role/policyedit.tpl' )
$role = eZRole::fetch( $roleID )
$roleID = $policy->attribute( 'role_id' )
if ($nodeLimitation!=null) $subtreeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Subtree' )
$subtreeList = array()
if ($currentModule== '*' else)
Initial value:
{
static exists($moduleName, $pathList=null, $showError=false)
Loads a module object by name.
Definition: ezmodule.php:1931
if($policy===null) $currentModule
Definition: policyedit.php:21