eZPublishCommunityProject(LegacyStack)  2013.9
content/copy.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 browse ($Module, $object)
 
 chooseObjectVersionsToCopy ($Module, &$Result, $object)
 
 copyObject ($Module, $object, $allVersions, $newParentNodeID)
 

Variables

else $allVersions = ( $versionHandling == 'last-published' ) ? false : true
 
 $chooseVersions = ( $versionHandling == 'user-defined' )
 
if($Module->isCurrentAction(
'Cancel')) 
$contentINI = eZINI::instance( 'content.ini' )
 
 $http = eZHTTPTool::instance()
 
 $Module = $Params['Module']
 
if($http->hasPostVariable(
'BrowseCancelButton')) if($ObjectID===null) 
$object = eZContentObject::fetch( $ObjectID )
 
 $ObjectID = $Params['ObjectID']
 
 $versionHandling = $contentINI->variable( 'CopySettings', 'VersionHandling' )
 
if($Module->isCurrentAction(
'Copy')) else if($Module->
isCurrentAction( 'CopyNode')) 
else
 

Function Documentation

browse (   $Module,
  $object 
)

Browse for node to place the object copy into

chooseObjectVersionsToCopy (   $Module,
$Result,
  $object 
)

Redirect to the page that lets a user to choose which versions to copy: either all version or the current one.

copyObject (   $Module,
  $object,
  $allVersions,
  $newParentNodeID 
)

Copy the specified object to a given node

Variable Documentation

else $allVersions = ( $versionHandling == 'last-published' ) ? false : true
$chooseVersions = ( $versionHandling == 'user-defined' )

Referenced by chooseOptionsToCopy().

$Module = $Params['Module']
if ($http->hasPostVariable( 'BrowseCancelButton')) if ($ObjectID===null) $object = eZContentObject::fetch( $ObjectID )
$ObjectID = $Params['ObjectID']
$versionHandling = $contentINI->variable( 'CopySettings', 'VersionHandling' )
if ($Module->isCurrentAction( 'Copy')) else if ($Module->isCurrentAction( 'CopyNode')) else
Initial value:
{
browse($Module, $object)
Definition: content/copy.php:109
$object
Definition: attribute_edit.php:43
$Module
Definition: classlist.php:9