eZPublishCommunityProject(LegacyStack)  2013.6
history.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

 $canEdit = false
 
 $canRemove = false
 
 $diff = array()
 
 $EditVersion = $Params['EditVersion']
 
 $editWarning = false
 
 $explodedURI = $LastAccessesVersionURI ? explode ( '/', $LastAccessesVersionURI ) : null
 
 $http = eZHTTPTool::instance()
 
 $LastAccessesVersionURI = $http->hasSessionVariable( 'LastAccessesVersionURI' ) ? $http->sessionVariable( 'LastAccessesVersionURI' ) : null
 
 $newerDraftVersionList
 
 $newerDraftVersionListCount = is_array( $newerDraftVersionList ) ? count( $newerDraftVersionList ) : 0
 
 $newestVersion = 1
 
if($http->hasPostVariable(
'BackButton')) 
$object = eZContentObject::fetch( $ObjectID )
 
 $ObjectID = $Params['ObjectID']
 
 $Offset = $Params['Offset']
 
 $previousVersion = 1
 
if($Module->isCurrentAction(
'Edit')) if($Module->
isCurrentAction( 'CopyVersion')) 
$res = eZTemplateDesignResource::instance()
 
 $Result = array()
 
 $Result ['content'] = $tpl->fetch( 'design:content/history.tpl' )
 
 $Result ['path']
 
 $section = eZSection::fetch( $object->attribute( 'section_id' ) )
 
 $tpl = eZTemplate::factory()
 
if($http->hasPostVariable('DiffButton')&&$http->
hasPostVariable( 'FromVersion')&&$http->
hasPostVariable( 'ToVersion'))
if($http->hasSessionVariable(
'ExcessVersionHistoryLimit'))
if($http->hasPostVariable(
'RemoveButton')) 
$user = eZUser::currentUser()
 
if($section) $versionArray =( isset( $versionArray ) && is_array( $versionArray ) ) ? array_unique( $versionArray, SORT_REGULAR ) : array()
 
 $versions = $object->versions()
 
 $viewParameters = array( 'offset' => $Offset )
 

Variable Documentation

$canEdit = false

Referenced by eZContentObject\canEdit().

$canRemove = false
$EditVersion = $Params['EditVersion']
$editWarning = false
$explodedURI = $LastAccessesVersionURI ? explode ( '/', $LastAccessesVersionURI ) : null
$LastAccessesVersionURI = $http->hasSessionVariable( 'LastAccessesVersionURI' ) ? $http->sessionVariable( 'LastAccessesVersionURI' ) : null
$newerDraftVersionList
Initial value:
null,
array( 'contentobject_id' => $object->attribute( 'id' ),
'version' => array( '>', $object->attribute( 'current_version' ) ) ),
array( 'modified' => 'asc',
'initial_language_id' => 'desc' ),
null, true )
$object
Definition: attribute_edit.php:43
static definition()
Definition: ezcontentobjectversion.php:40
const STATUS_DRAFT
Definition: ezcontentobjectversion.php:20
static fetchObjectList($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
Creates an SQL query out of the different parameters and returns an array with the result...
Definition: ezpersistentobject.php:761
if(!defined( 'CLUSTER_STORAGE_BACKEND')||CLUSTER_STORAGE_BACKEND===null) if(!defined( 'CLUSTER_ENABLE_HTTP_RANGE')) define( 'CLUSTER_ENABLE_HTTP_RANGE' true
Definition: index_cluster.php:44
$newerDraftVersionListCount = is_array( $newerDraftVersionList ) ? count( $newerDraftVersionList ) : 0
$newestVersion = 1
if ($http->hasPostVariable( 'BackButton')) $object = eZContentObject::fetch( $ObjectID )
$ObjectID = $Params['ObjectID']
$Offset = $Params['Offset']
if ($Module->isCurrentAction( 'Edit')) if ($Module->isCurrentAction( 'CopyVersion')) $res = eZTemplateDesignResource::instance()
$Result = array()
$Result['content'] = $tpl->fetch( 'design:content/history.tpl' )
$Result['path']
Initial value:
= array( array( 'text' => ezpI18n::tr( 'kernel/content', 'History' ),
'url' => false ) )
static tr($context, $source, $comment=null, $arguments=null)
Translates the source $source with context $context and optional comment $comment and returns the tra...
Definition: ezpi18n.php:86
$section = eZSection::fetch( $object->attribute( 'section_id' ) )
if ($http->hasPostVariable('DiffButton')&&$http->hasPostVariable( 'FromVersion')&&$http->hasPostVariable( 'ToVersion')) if ($http->hasSessionVariable( 'ExcessVersionHistoryLimit')) if ($http->hasPostVariable( 'RemoveButton')) $user = eZUser::currentUser()
if ($section) $versionArray =( isset( $versionArray ) && is_array( $versionArray ) ) ? array_unique( $versionArray, SORT_REGULAR ) : array()
$viewParameters = array( 'offset' => $Offset )