public function tearDown() { eZPolicyLimitation::removeByID($this->policy->attribute('id')); eZPolicy::removeByID($this->policy->attribute('id')); $this->policy = null; parent::tearDown(); }
$limitationID = $limitation->attribute( 'id' ); $limitationIdentifier = $limitation->attribute( 'identifier' ); if ( in_array( $limitationIdentifier, $dropList ) ) { eZPolicyLimitation::removeByID( $limitationID ); } } } else { foreach ( $limitationList as $limitation ) { $limitationID = $limitation->attribute( 'id' ); $limitationIdentifier = $limitation->attribute( 'identifier' ); if ( $limitationIdentifier != 'Node' and $limitationIdentifier != 'Subtree' ) eZPolicyLimitation::removeByID( $limitationID ); } } $db->commit(); $selectedNodeIDList = $http->postVariable( 'SelectedNodeIDArray' ); if ( $nodeLimitation == null ) $nodeLimitation = eZPolicyLimitation::createNew( $policyID, 'Node' ); foreach ( $selectedNodeIDList as $nodeID ) { if ( !in_array( $nodeID, $nodeIDList ) ) { $nodeLimitationValue = eZPolicyLimitationValue::createNew( $nodeLimitation->attribute( 'id' ), $nodeID ); $node = eZContentObjectTreeNode::fetch( $nodeID );
function removeThis() { eZPolicyLimitation::removeByID($this->attribute('id')); }