eZPublish  4.5
pdf/edit.php File Reference

Functions

 generatePDF ($pdfExport, $toFile=false)
 

Variables

 $classArray = eZContentClass::fetchList()
 
 $http = eZHTTPTool::instance()
 
 $inputValidated = true
 
 $Module = $Params['Module']
 
 $pdfExport = eZPDFExport::create( $user->attribute( 'contentobject_id' ) )
 
if(!$inputValidated) $Result = array()
 
 $Result ['content'] = $tpl->fetch( 'design:pdf/edit.tpl' )
 
 $Result ['path']
 
if($Module->isCurrentAction(
'BrowseSource')||$Module->
isCurrentAction( 'Export')) 
$setWarning = false
 
if($Module->isCurrentAction(
'BrowseSource')) else if($Module->
isCurrentAction( 'Export')&&$inputValidated)
else if($Module->
isCurrentAction( 'Discard')) 
$tpl = eZTemplate::factory()
 
if($http->hasPostVariable(
'SelectedNodeIDArray')&&!$http->
hasPostVariable(
'BrowseCancelButton')) 
$validation = array()
 
if(isset($Params['PDFGenerate'])&&$Params['PDFGenerate']==
'generate') if(isset($Params['PDFExportID'])) 
else
 

Function Documentation

generatePDF (   $pdfExport,
  $toFile = false 
)

and output PDF data, either to file or stream

Parameters
PDFexport object
toFile,falseif generate to stream, $ filename if generate to file

Variable Documentation

$classArray = eZContentClass::fetchList()
$inputValidated = true
$Module = $Params['Module']
$pdfExport = eZPDFExport::create( $user->attribute( 'contentobject_id' ) )

Referenced by generatePDF().

if (!$inputValidated) $Result = array()
$Result['content'] = $tpl->fetch( 'design:pdf/edit.tpl' )
$Result['path']
Initial value:
= array( array( 'url' => false,
'text' => ezpI18n::tr( 'pdf/edit', 'PDF Export' ) ) )
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:87
if ($Module->isCurrentAction( 'BrowseSource')||$Module->isCurrentAction( 'Export')) $setWarning = false
if ($Module->isCurrentAction( 'BrowseSource')) else if ($Module->isCurrentAction( 'Export')&&$inputValidated) else if ($Module->isCurrentAction( 'Discard')) $tpl = eZTemplate::factory()
if ($http->hasPostVariable( 'SelectedNodeIDArray')&&!$http->hasPostVariable( 'BrowseCancelButton')) $validation = array()
if (isset($Params['PDFGenerate'])&&$Params['PDFGenerate']== 'generate') if (isset($Params['PDFExportID'])) else
Initial value:
{
$user
Definition: ezconvertmysqltabletype.php:55
static currentUser()
Definition: ezuser.php:1537