Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • QuickbooksInvoice
  • QuickbooksInvoicePdf
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class QuickbooksInvoice

Quickbooks Invoice Template

InvoiceTemplate
Extended by QuickbooksInvoice
Package: blesta\components\invoice\templates\quickbooks\invoice
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_templates/quickbooks_invoice/quickbooks_invoice.php
Methods summary
public
# __construct( )

Loads the language to be used for this invoice

Loads the language to be used for this invoice

public
# setMeta( array $meta )

Sets the meta data to use for this invoice. This method is invoked after __construct() but before makeDocument()

Sets the meta data to use for this invoice. This method is invoked after __construct() but before makeDocument()

Parameters

$meta

An array of meta data including:

  • background The absolute path to the background graphic
  • logo The absolute path to the logo graphic
  • company_name The name of the company
  • company_address The address of the company
  • terms The terms to display on this invoice
  • paper_size The size of paper to use (e.g. "A4" or "Letter")
  • tax An array of tax info including:
    • tax_id The Tax ID/VATIN of this company
    • cascade_tax Whether or not taxes are cascading
  • language The language of the definitions to set for this document
public
# includeAddress( boolean $include_address = true )

Sets whether the to address should be included in the invoice

Sets whether the to address should be included in the invoice

Parameters

$include_address
Whether to include the address in the PDF
public
# setCurrency( CurrencyFormat $currency_format )

Sets the CurrencyFormat object for parsing currency values

Sets the CurrencyFormat object for parsing currency values

Parameters

$currency_format
The CurrencyFormat object
public
# setDate( Date $date )

Sets the Date object for parsing date values

Sets the Date object for parsing date values

Parameters

$date
The Date object

Overrides

InvoiceTemplate::setDate()
public
# setMimeType( string $mime_type )

Sets the MIME type to be used when fetching and streaming this invoice. Called after __construct()

Sets the MIME type to be used when fetching and streaming this invoice. Called after __construct()

Parameters

$mime_type
The mime_type to render ("application/pdf", "text/html", etc.)
public
# supportedMimeTypes( )

Returns the MIME types that this template supports for output

Returns the MIME types that this template supports for output

public string
# getFileExtension( string $mime_type )

Returns the file extension for the given (supported) mime type

Returns the file extension for the given (supported) mime type

Parameters

$mime_type
The mime_type to fetch the extension of

Returns

string
The extension to use for the given mime type
public
# getName( )

Returns the name of this invoice PDF template

Returns the name of this invoice PDF template

public string
# getVersion( )

Returns the version of this invoice PDF template

Returns the version of this invoice PDF template

Returns

string
The current version of this invoice PDF template
public array
# getAuthors( )

Returns the name and URL for the authors of this invoice PDF template

Returns the name and URL for the authors of this invoice PDF template

Returns

array
The name and URL of the authors of this invoice PDF template
public
# makeDocument( array $invoice_data )

Generates one or more invoices for a single document

Generates one or more invoices for a single document

Parameters

$invoice_data
An numerically indexed array of stdClass objects each representing an invoice
public string
# fetch( )

Returns the invoice document in the desired format

Returns the invoice document in the desired format

Returns

string
The PDF document in binary format
public
# stream( string $name = null )

Outputs the Invoice document to stdout, sending the apporpriate headers to render the document inline

Outputs the Invoice document to stdout, sending the apporpriate headers to render the document inline

Parameters

$name
The name for the document minus the extension (optional)

Throws

Exception
Thrown when the MIME type is not supported by the template
public
# download( string $name = null )

Outputs the Invoice document to stdout, sending the appropriate headers to force a download of the document

Outputs the Invoice document to stdout, sending the appropriate headers to force a download of the document

Parameters

$name
The name for the document minus the extension (optional)

Throws

Exception
Thrown when the MIME type is not supported by the template
Blesta API documentation generated by ApiGen