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

  • Interfax
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Interfax

Interfax service for sending faxes

Package: blesta\components\delivery\interfax
Copyright: Copyright (c) 2011, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/delivery/interfax/interfax.php
Methods summary
public
# __construct( )

Constructs a new Interfax component

Constructs a new Interfax component

public
# setAccount( string $username, string $password )

Sets the username and password for the Interfax account to send faxes from

Sets the username and password for the Interfax account to send faxes from

Parameters

$username
The account username
$password
The account password
public
# setNumbers( mixed $fax_numbers )

Sets the fax numbers to use for this fax

Sets the fax numbers to use for this fax

Parameters

$fax_numbers
An array of fax numbers, or a single fax number
public
# setContacts( mixed $contacts )

Sets the contact names associated with a fax number. Fax numbers and contact names must maintain order.

Sets the contact names associated with a fax number. Fax numbers and contact names must maintain order.

Parameters

$contacts
An array of contact names, or a single contact name
public
# setFile( array $files )

Sets the file and file type of the file to be faxed

Sets the file and file type of the file to be faxed

Parameters

$files

A numerically-indexed array of files and their types:

  • file The bitstream of the file to send in binary
  • type The type of file this is (i.e. HTML, DOC, or PDF), (optional, default PDF)
public array
# getFileTypes( )

Retrieves a list of available file types accepted by Interfax

Retrieves a list of available file types accepted by Interfax

Returns

array
A numerically-indexed array of available file types
public array
# getPageSizes( )

Retrieves a list of available page sizes accepted by Interfax

Retrieves a list of available page sizes accepted by Interfax

Returns

array
A numerically-indexed array of available page sizes
public array
# getPageOrientations( )

Retrieves a list of available page orientations

Retrieves a list of available page orientations

Returns

array
A numerically-indexed array of available page orientations
public
# setSubject( string $subject )

Sets the subject of this fax, viewable in the Interfax account under Outpbound Queue

Sets the subject of this fax, viewable in the Interfax account under Outpbound Queue

Parameters

$subject
The subject name
public
# setResolution( integer $resolution )

Sets the resolution of this fax

Sets the resolution of this fax

Parameters

$resolution
The resolution quality of the fax. 1 for fine, 0 for standard
public
# setCallerId( string $caller_id )

Sets the caller ID

Sets the caller ID

Parameters

$caller_id
The caller ID
public
# setConfirmationEmail( string $email_address )

Sets an email address to send a confirmation to

Sets an email address to send a confirmation to

Parameters

$email_address
An email address
public
# setSendTime( string $time )

Sets the date and time at which Interfax should dispatch the fax. Dates in the past will be sent immediately

Sets the date and time at which Interfax should dispatch the fax. Dates in the past will be sent immediately

Parameters

$time
A valid PHP date time stamp
public
# setPageSize( string $page_size )

Sets the page size of documents sent to Interfax. This applies to all files

Sets the page size of documents sent to Interfax. This applies to all files

Parameters

$page_size
The page size to set (i.e. A4, Letter, Legal, or B4)
public
# setPageOrientation( string $orientation )

Sets the page orientation of documents sent to Interfax. This applies to all files

Sets the page orientation of documents sent to Interfax. This applies to all files

Parameters

$orientation
The page orientation to set (i.e. Landscape or Portrait)
public
# resetAll( )

Resets all settings back to default except for the account username and password

Resets all settings back to default except for the account username and password

public
# send( )

Sends a fax to Interfax

Sends a fax to Interfax

public array
# errors( )

Returns all errors set in this object

Returns all errors set in this object

Returns

array
An array of error info
Blesta API documentation generated by ApiGen