本文整理汇总了PHP中eZPolicyLimitation::removeByID方法的典型用法代码示例。如果您正苦于以下问题:PHP eZPolicyLimitation::removeByID方法的具体用法?PHP eZPolicyLimitation::removeByID怎么用?PHP eZPolicyLimitation::removeByID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZPolicyLimitation
的用法示例。
在下文中一共展示了eZPolicyLimitation::removeByID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
eZPolicyLimitation::removeByID($this->policy->attribute('id'));
eZPolicy::removeByID($this->policy->attribute('id'));
$this->policy = null;
parent::tearDown();
}
示例2: foreach
$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 );
示例3: removeThis
function removeThis()
{
eZPolicyLimitation::removeByID($this->attribute('id'));
}