Blesta Source Documentation

InvoiceFormats extends Component

Invoice Format factory

Table of Contents

Properties

$components
$helpers
$models

Methods

__construct()
create() Returns an instance of the requested invoice format
listFormats() Lists all available invoice formats by scanning directories
Properties
Methods

create()

Returns an instance of the requested invoice format

public static create(string $format_name) : mixed
Parameters
$format_name : string

The name of the invoice format to instantiate

Tags
throws
Exception

Thrown when the format_name does not exists or does not inherit from the appropriate parent

Return values
mixed

An object of type $format_name

listFormats()

Lists all available invoice formats by scanning directories

public static listFormats() : array<string|int, mixed>
Return values
array<string|int, mixed>

An associative array where key is format_name and value is the display name

Tags
subpackage

components.invoice_formats;

copyright

Copyright (c) 2025, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results