Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • _404
  • AdminBilling
  • AdminClient
  • AdminClients
  • AdminCompanyAutomation
  • AdminCompanyBilling
  • AdminCompanyCurrencies
  • AdminCompanyCustomfields
  • AdminCompanyEmails
  • AdminCompanyGateways
  • AdminCompanyGeneral
  • AdminCompanyGroups
  • AdminCompanyModules
  • AdminCompanyPlugins
  • AdminCompanyTaxes
  • AdminDialog
  • AdminLicense
  • AdminLogin
  • AdminLogout
  • AdminMain
  • AdminMyinfo
  • AdminPackages
  • AdminSearch
  • AdminSettings
  • AdminSystemApi
  • AdminSystemAutomation
  • AdminSystemBackup
  • AdminSystemCompanies
  • AdminSystemGeneral
  • AdminSystemHelp
  • AdminSystemMarketplace
  • AdminSystemStaff
  • AdminSystemThemes
  • AdminSystemUpgrade
  • AdminTests
  • AdminTheme
  • AdminTools
  • Api
  • Callback
  • ClientAccounts
  • ClientContacts
  • ClientDialog
  • ClientInvoices
  • ClientLogin
  • ClientLogout
  • ClientMain
  • ClientPay
  • ClientServices
  • ClientTheme
  • ClientTransactions
  • Cron
  • Install
  • Main
  • Upgrade
  • Uploads

Class ClientAccounts

Client portal accounts controller

Controller
Extended by AppController
Extended by ClientAccounts
Package: blesta\app\controllers
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/controllers/client_accounts.php

Methods summary

public
# preAction( )

Main pre-action

Main pre-action

Overrides

AppController::preAction
public
# index( )

List all client accounts, allow client to set primary account

List all client accounts, allow client to set primary account

Overrides

Controller::index
public
# add( )

Create a new payment account

Create a new payment account

public
# editCc( )

Edit a credit card payment account

Edit a credit card payment account

public
# editAch( )

Add an ACH payment account

Add an ACH payment account

public
# deleteCc( )

Delete a credit card payment account

Delete a credit card payment account

public
# deleteAch( )

Delete an ACH payment account

Delete an ACH payment account

private
# setContactView( stdClass $vars, boolean $edit = false )

Sets the contact partial view

Sets the contact partial view

Parameters

$vars
stdClass
$vars The input vars object for use in the view
$edit
boolean
$edit True if this is an edit, false otherwise

See

ClientAccounts::addCc(), ClientAccounts::addAch(), ClientAccounts::editCc(), ClientAccounts::editAch()
private string
# getAchView( stdClass $vars, boolean $edit = false, boolean $save_account = false )

Retrieves the ACH partial view

Retrieves the ACH partial view

Parameters

$vars
stdClass
$vars The input vars object for use in the view
$edit
boolean
$edit True if this is an edit, false otherwise
$save_account
boolean
$save_account True to offer an option to save these payment details, false otherwise

Returns

string
The ACH account info partial

See

ClientAccounts::addAch(), ClientAccounts::editAch()
private string
# getCcView( stdClass $vars, boolean $edit = false, boolean $save_account = false )

Retrieves the CC partial view

Retrieves the CC partial view

Parameters

$vars
stdClass
$vars The input vars object for use in the view
$edit
boolean
$edit True if this is an edit, false otherwise
$save_account
boolean
$save_account True to offer an option to save these payment details, false otherwise

Returns

string
The CC account info partial

See

ClientAccounts::addCc(), ClientAccounts::editCc()
private array
# getAccounts( )

Retrieves a list of all client payment accounts

Retrieves a list of all client payment accounts

Returns

array
A list of CC and ACH payment accounts belonging to this client
private mixed
# getDebitAccount( array $payment_accounts, stdClass $client_account = false )

Retrieves the active debit account selected for this client

Retrieves the active debit account selected for this client

Parameters

$payment_accounts
array
A list of ACH and CC payment account objects
$client_account
stdClass
$client_account An stdClass object representing the current active debit account (optional, default false)

Returns

mixed
False if no debit account is set, otherwise an array of debit account settings including: - account_id The account ID - type The account type

See

ClientAccounts::index()

Methods inherited from AppController

__construct(), authorized(), flashMessage(), getCompany(), getDaysOfWeek(), getMonths(), getTimes(), getWidgets(), isAjax(), isLoggedIn(), isStaffAsClient(), licenseCheck(), outputAsJson(), postAction(), primeCompany(), renderAjaxWidget(), renderAjaxWidgetIfAsync(), reorderWidgets(), requireLogin(), setMessage(), setWidgetState(), toggleWidget()

Methods inherited from Controller

clearCache(), components(), draw(), emptyCache(), helpers(), partial(), redirect(), render(), set(), setDefaultViewPath(), startCaching(), stopCaching(), uses()

Magic methods summary

Properties summary

Properties inherited from AppController

$admin_uri, $base_uri, $base_url, $client_uri, $company_id, $components, $helpers, $layout, $request_uri, $server_protocol

Properties inherited from Controller

$action, $controller, $files, $get, $is_cli, $plugin, $post, $structure, $structure_view, $uri, $uri_str, $uses, $view

Blesta API documentation generated by ApiGen 2.8.0