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 ClientMain

Client portal main controller

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

Methods summary

public
# preAction( )

Main pre-action

Main pre-action

Overrides

AppController::preAction
public
# index( )

Client Profile

Client Profile

Overrides

Controller::index
public
# edit( )

Edit the client

Edit the client

public
# invoiceMethod( )

Edit client's invoice method

Edit client's invoice method

private mixed
# addCustomFields( array $vars = array() )

Attempts to add custom fields to a client

Attempts to add custom fields to a client

Parameters

$vars
integer
$client_id The client ID to add custom fields for

Returns

mixed
An array of errors, or false if none exist

See

Clients::add(), Clients::edit()
private
# setContactView( stdClass $vars )

Sets the contact partial view

Sets the contact partial view

Parameters

$vars
stdClass
$vars The input vars object for use in the view

See

ClientMain::edit()
private
# setPhoneView( stdClass $vars )

Sets the contact phone number partial view

Sets the contact phone number partial view

Parameters

$vars
stdClass
$vars The input vars object for use in the view

See

ClientMain::edit()
private
# setCustomFieldView( stdClass $vars )

Sets the custom fields partial view

Sets the custom fields partial view

See

ClientMain::edit()
private
# setMyInfo( )

Sets a partial view that contains all left-column client info

Sets a partial view that contains all left-column client info

public
# getStates( )

AJAX Fetch all states belonging to a given country (json encoded ajax request)

AJAX Fetch all states belonging to a given country (json encoded ajax request)

private string
# getAutodebitDescription( )

Retrieves the autodebit language description based on the payment account settings

Retrieves the autodebit language description based on the payment account settings

Returns

string
The autodebit language description

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

private string $custom_field_prefix
#

The custom field prefix used in form names to keep them unique and easily referenced

The custom field prefix used in form names to keep them unique and easily referenced

private array $editable_settings
#

A list of client editable settings

A list of client editable settings

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