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

  • SettingsCollection

Class SettingsCollection

A collection manager of company settings

Package: blesta\components\settingscollection
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/settings_collection/settings_collection.php

Methods summary

public
# __construct( )
public array
# fetchSettings( Companies $companies = null, integer $company_id = null, boolean $ignore_inheritence = false )

Fetches all settings that apply to this company. Settings are inherited in the order of company_settings -> settings where "->" represents the left item inheriting (and overwriting in the case of duplicates) values found in the right item.

Fetches all settings that apply to this company. Settings are inherited in the order of company_settings -> settings where "->" represents the left item inheriting (and overwriting in the case of duplicates) values found in the right item.

Parameters

$companies
Companies
$companies A reference to the Companies model object
$company_id
integer
$company_id The company ID to retrieve settings for
$ignore_inheritence
boolean
$ignore_inheritence True to only retrieve company settings, false to get all inherited settings (default false)

Returns

array
A key=>value array of company settings
public array
# fetchSetting( Companies $companies = null, string $company_id = null, mixed $key = null )

Fetches a specific setting that apply to this company. Settings are inherited in the order of company_settings -> settings where "->" represents the left item inheriting (and overwriting in the case of duplicates) values found in the right item.

Fetches a specific setting that apply to this company. Settings are inherited in the order of company_settings -> settings where "->" represents the left item inheriting (and overwriting in the case of duplicates) values found in the right item.

Parameters

$companies
integer
$company_id The company ID to retrieve a setting for
$company_id
string
$key The key name of the setting to fetch
$key

Returns

array
containing the key and value for this setting
public array
# fetchSystemSettings( Settings $settings = null )

Fetches all system settings.

Fetches all system settings.

Parameters

$settings
Settings
$settings A reference to the Settings model object

Returns

array
A key=>value array of system settings
public array
# fetchSystemSetting( Settings $settings = null, string $key = null )

Fetches a specific system setting.

Fetches a specific system setting.

Parameters

$settings
Settings
$settings A reference to the Settings model object
$key
string
$key The key name of the setting to fetch

Returns

array
containing the key and value for this setting
public array
# fetchClientGroupSettings( integer $client_group_id, ClientGroups $settings = null, boolean $ignore_inheritence = false )

Fetches all client group settings for a particular group

Fetches all client group settings for a particular group

Parameters

$client_group_id
integer
$client_group_id The client group ID to fetch settings for
$settings
ClientGroups
$settings A reference to the ClientGroups model object
$ignore_inheritence
boolean
$ignore_inheritence True to fetch only client group settings without inheriting from company or system settings (default false)

Returns

array
A key=>value array of client group settings
public array
# fetchClientGroupSetting( integer $client_group_id, ClientGroups $settings = null, string $key = null )

Fetches a specific ClientGroup setting.

Fetches a specific ClientGroup setting.

Parameters

$client_group_id
integer
$client_group_id The client group ID to fetch a setting for
$settings
ClientGroups
$settings A reference to the ClientGroups model object
$key
string
$key The key name of the setting to fetch

Returns

array
containing the key and value for this setting
public array
# fetchClientSettings( integer $client_id, Clients $settings = null )

Fetches all client settings for a particular client

Fetches all client settings for a particular client

Parameters

$client_id
integer
$client_id The client ID to fetch settings for
$settings
Clients
$settings A reference to the Clients model object

Returns

array
A key=>value array of client group settings
public array
# fetchClientSetting( integer $client_id, Clients $settings = null, string $key = null )

Fetches a specific Client setting.

Fetches a specific Client setting.

Parameters

$client_id
integer
$client_id The client group ID to fetch a setting for
$settings
Clients
$settings A reference to the Clients model object
$key
string
$key The key name of the setting to fetch

Returns

array
containing the key and value for this setting
private object
# loadIfNotSet( mixed $obj, string $model )

Loads the given model if nothing passed into $obj

Loads the given model if nothing passed into $obj

Parameters

$obj
mixed
$obj The model object to be used, null to initialize the model using $model instead.
$model
string
$model The name of the model to initialize if $obj is not given

Returns

object
The model object specified by $obj or created using $model if not specified.

Magic methods summary

Blesta API documentation generated by ApiGen 2.8.0