eZ Publish  [trunk]
policyedit.php File Reference

Go to the source code of this file.

Functions

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

Variables

 $currentFunction = $policy->attribute( 'function_name' )
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()
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()

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

Definition at line 348 of file policyedit.php.


Variable Documentation

$currentFunction = $policy->attribute( 'function_name' )

Definition at line 22 of file policyedit.php.

Referenced by eZPolicyLimitation\allValuesAsArrayWithNames().

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

Definition at line 299 of file policyedit.php.

if ($policy===null) $currentModule = $policy->attribute( 'module_name' )

Definition at line 21 of file policyedit.php.

Referenced by eZPolicyLimitation\allValuesAsArrayWithNames().

if (isset($functions[$currentFunction])&&$functions[$currentFunction]) $http = eZHTTPTool::instance()

Definition at line 62 of file policyedit.php.

$limitationValueList = $policy->limitationList()
$Module = $Params['Module']

Definition at line 9 of file policyedit.php.

if ($http->hasPostVariable( 'DeleteNodeButton')) if ($http->hasPostVariable( 'DeleteSubtreeButton')) $nodeIDList = array()

Definition at line 109 of file policyedit.php.

$nodeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Node' )

Definition at line 110 of file policyedit.php.

$originalPolicyID = $policy->attribute( 'original_id' )

Definition at line 14 of file policyedit.php.

$Result = array()

Definition at line 333 of file policyedit.php.

$Result['path']
Initial value:
 array( array( 'url' => false,
                                'text' => ezpI18n::tr( 'kernel/role', 'Editing policy' ) ) )

Definition at line 335 of file policyedit.php.

$Result['content'] = $tpl->fetch( 'design:role/policyedit.tpl' )

Definition at line 337 of file policyedit.php.

$role = eZRole::fetch( $roleID )

Definition at line 24 of file policyedit.php.

$roleID = $policy->attribute( 'role_id' )

Definition at line 23 of file policyedit.php.

if ($nodeLimitation!=null) $subtreeLimitation = eZPolicyLimitation::fetchByIdentifier( $policyID, 'Subtree' )

Definition at line 125 of file policyedit.php.

$subtreeList = array()

Definition at line 28 of file policyedit.php.

Definition at line 320 of file policyedit.php.