eZPublish  3.8
content/copy.php File Reference

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:
{
$object
Definition: attribute_edit.php:73
$Module
Definition: classlist.php:32
browse(&$Module, &$object)
Definition: content/copy.php:127