Support Joomla!

references:joomla.framework:document:jdocumentpdf-setname

Table of Contents

setName

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentPDF Method setName Reference setName() Never Work in Progress

Sets the document name.

The name is returned as part of the header in the render() method.

Syntax

void setName ( $name )

$name string is a string containing the document name.

Examples

Example

$pdfDoc =& JDocument::getInstance( 'pdf' );
$pdfDoc->setName( 'This is the document name' );
echo $pdfDoc->getName();

might produce:

Result

This is the document name

Discussion

Full name:
E-Mail:
 
references/joomla.framework/document/jdocumentpdf-setname.txt (519 views) · Last modified: 2007/08/15 14:53