Class InvoiceTemplate
Abstract class that all Invoice Templates must extend
Abstract
Package: blesta\components\invoice\templates
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_templates/invoice_template.php
Package: blesta\components\invoice\templates
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_templates/invoice_template.php
abstract public
|
#
setMeta( array $meta )
Sets the meta data to use for this invoice. This method is invoked after __construct() but before makeDocument() |
abstract public
|
#
setCurrency(
Sets the CurrencyFormat object for parsing currency values |
public
|
|
abstract public
|
#
setMimeType( string $mime_type )
Sets the MIME type to be used when fetching and streaming this invoice. Called after __construct() |
abstract public
|
|
abstract public
string
|
#
getFileExtension( string $mime_type )
Returns the file extension for the given (supported) mime type |
abstract public
|
|
abstract public
string
|
|
abstract public
array
|
|
abstract public
|
|
abstract public
|
#
includeAddress( boolean $include_address = true )
Sets whether or not to include the To address information in the invoice document |
abstract public
string
|
|
abstract public
|
#
stream( string $name = null )
Outputs the Invoice document to stdout, sending the apporpriate headers to render the document inline |
abstract public
|
#
download( string $name = null )
Outputs the Invoice document to stdout, sending the appropriate headers to force a download of the document |