Class AdminClients
Admin Clients Management
- Controller
- AppController
- AdminClients
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/controllers/admin_clients.php
Methods summary
public
|
#
preAction( )
Overwritable method called before the index method, or controller specified action. This method is public to make compatible with PHP 5.1 (due to a bug not fixed until 5.2). It is, however, not a callable action. |
public
|
|
public
|
#
view( string $content = null )
View a specific client profile, may optionally set what content to view within the content view. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
private
mixed
|
#
addCustomFields( integer $client_id, array $vars = array() )
Attempts to add custom fields to a client |
public
|
#
quickUpdate( )
AJAX quick update client to set status, invoice method, auto debit status, or auto suspension status |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
showcard( )
Renders a form to enter a passphrase for decrypting a card and returns the card on success |
public
|
#
showaccount( )
Renders a form to enter a passphrase for decrypting a bank account and routing number and returns the values on success |
public
|
|
public
|
|
public
|
|
private
|
|
private
|
|
private
|
|
public
|
|
public
|
|
public
|
|
public
|
#
calcLineTotals( )
Sums line items and returns the sub total, total, and tax amount based on
currency and company settings for the given set of data and tax rules that apply
to each. Outputs a JSON encoded array including: |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
private
string
|
|
private
|
|
private
array
|
|
private
|
|
public
|
|
private
mixed
|
#
renderClientView( string $view, boolean $content_only = false )
Render the given Client view element |
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
array
|
$widgets_state | |
private
string
|
$custom_field_prefix |
#
The custom field prefix used in form names to keep them unique and easily referenced |
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