eZ Publish  [4.2]
ezsubtreeremove.php File Reference

Go to the source code of this file.

Variables

 $canRemoveAll = $info['can_remove_all']
 $cli = eZCLI::instance()
 $deleteIDArray = $srcNodesID ? explode( ',', $srcNodesID ) : false
 $deleteIDArrayResult = array()
 $deleteResult = $info['delete_list']
foreach($deleteIDArray as $nodeID) $info = eZContentObjectTreeNode::subtreeRemovalInformation( $deleteIDArrayResult )
if(!$deleteIDArray) $ini = eZINI::instance()
 $moveToTrash = $scriptOptions[ 'ignore-trash' ] ? false : true
 $moveToTrashStr = $moveToTrash ? 'true' : 'false'
 $reverseRelatedCount = $info['reverse_related_count']
 $script
 $scriptOptions
 $srcNodesID = $scriptOptions[ 'nodes-id' ] ? trim( $scriptOptions[ 'nodes-id' ] ) : false
if(count($deleteResult)==0) $totalChildCount = $info['total_child_count']
 $user = eZUser::fetch( $userCreatorID )
 $userCreatorID = $ini->variable( "UserSettings", "UserCreatorID" )

Variable Documentation

$canRemoveAll = $info['can_remove_all']

Definition at line 96 of file ezsubtreeremove.php.

Referenced by eZContentObjectTreeNode\removeSubtrees().

$cli = eZCLI::instance()

Definition at line 36 of file ezsubtreeremove.php.

$deleteIDArray = $srcNodesID ? explode( ',', $srcNodesID ) : false
$deleteIDArrayResult = array()

Definition at line 73 of file ezsubtreeremove.php.

$deleteResult = $info['delete_list']

Definition at line 87 of file ezsubtreeremove.php.

Referenced by eZContentObjectTreeNode\removeSubtrees().

foreach ($deleteIDArray as $nodeID) $info = eZContentObjectTreeNode::subtreeRemovalInformation( $deleteIDArrayResult )

Definition at line 85 of file ezsubtreeremove.php.

Referenced by Cpdf\addInternalLink(), Cpdf\addLink(), Cpdf\addPngFromFile(), Cpdf\addText(), Cezpdf\alink(), eZContentClassAttribute\cachedInfo(), eZURLWildcard\cacheInfoDirectories(), eZPDFTable\callAnchor(), eZPDFTable\callCircle(), eZPDFTable\callDrawLine(), eZPDFTable\callFilledRectangle(), eZPDFTable\callFrameLine(), eZPDFTable\callFrameMargins(), eZPDFTable\callImage(), eZPDFTable\callInsertTOC(), eZPDFTable\callKeyword(), eZPDFTable\callRectangle(), eZPDFTable\callSetMargin(), eZPDFTable\callStartPageCounter(), eZPDFTable\callTOC(), eZDataType\classDisplayInformation(), eZImageManager\createImageAlias(), eZImageAliasHandler\createImageInformationNode(), eZCollaborationItem\createNotificationEvent(), eZContentClassAttribute\dataTypeByID(), eZContentCacheManager\dependencyInfo(), eZPDFTable\dots(), eZContentObjectPackageHandler\explainInstallItem(), Cezpdf\ezPRVTaddPageNumbers(), eZWebDAVContentServer\fetchNodeInfo(), eZWebDAVContentBackend\fetchNodeInfo(), eZWebDAVContentServer\fetchVirtualSiteContent(), eZWebDAVContentServer\getContentNodeData(), eZWebDAVContentBackend\getContentNodeData(), eZUser\hasAccessToView(), Cezpdf\ilink(), eZImageAliasHandler\initialize(), eZDataType\isClassAttributeRemovable(), eZContentClass\isRemovable(), eZURLWildcard\loadCacheFile(), eZLocale\localeInformation(), eZLDAPUser\loginUser(), eZImageManager\mimeTypeSetting(), eZDateOperatorCollection\modify(), eZTemplateLocaleOperator\modify(), Cpdf\o_pattern(), eZObjectRelationType\objectDisplayInformation(), eZEnumType\objectDisplayInformation(), eZDataType\objectDisplayInformation(), eZEXIFImageAnalyzer\process(), eZGIFImageAnalyzer\process(), Cpdf\PRVTcheckTextDirective1(), eZContentClass\removableInformation(), eZContentClassAttribute\sortKeyTypeByID(), eZContentClassAttribute\store(), eZContentClassAttribute\storeDefined(), Cezpdf\strike(), eZDiffTextEngine\substrings(), Cezpdf\uline(), eZContentObjectPackageHandler\uninstall(), eZImageType\validateObjectAttributeHTTPInput(), and eZDBSchemaInterface\writeArraySchemaFile().

if (!$deleteIDArray) $ini = eZINI::instance()

Definition at line 62 of file ezsubtreeremove.php.

$moveToTrash = $scriptOptions[ 'ignore-trash' ] ? false : true
$moveToTrashStr = $moveToTrash ? 'true' : 'false'

Definition at line 97 of file ezsubtreeremove.php.

$reverseRelatedCount = $info['reverse_related_count']

Definition at line 98 of file ezsubtreeremove.php.

Initial value:
 eZScript::instance( array( 'description' => ( "\n" .
                                                         "This script will make a remove of a content object subtrees.\n" ),
                                      'use-session' => false,
                                      'use-modules' => true,
                                      'use-extensions' => true ) )

Definition at line 37 of file ezsubtreeremove.php.

$scriptOptions
Initial value:
 $script->getOptions( "[nodes-id:][ignore-trash]",
                                      "",
                                      array( 'nodes-id' => "Subtree nodes ID (separated by comma ',').",
                                             'ignore-trash' => "Ignore trash ('move to trash' by default)."
                                             ),
                                      false )

Definition at line 44 of file ezsubtreeremove.php.

$srcNodesID = $scriptOptions[ 'nodes-id' ] ? trim( $scriptOptions[ 'nodes-id' ] ) : false

Definition at line 51 of file ezsubtreeremove.php.

if (count($deleteResult)==0) $totalChildCount = $info['total_child_count']

Definition at line 95 of file ezsubtreeremove.php.

Referenced by eZContentObjectTreeNode\removeSubtrees().

$user = eZUser::fetch( $userCreatorID )

Definition at line 65 of file ezsubtreeremove.php.

$userCreatorID = $ini->variable( "UserSettings", "UserCreatorID" )