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

  • SettingsCollection
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

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( )

Initialize the SettingsCollection

Initialize the SettingsCollection

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
A reference to the Companies model object
$company_id
The company ID to retrieve settings for
$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, integer $company_id = null, string $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
The Companies object model (optional)
$company_id
The company ID to retrieve a setting for (optional)
$key
The key name of the setting to fetch (optional)

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
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
A reference to the Settings model object
$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
The client group ID to fetch settings for
$settings
A reference to the ClientGroups model object
$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
The client group ID to fetch a setting for
$settings
A reference to the ClientGroups model object
$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
The client ID to fetch settings for
$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
The client group ID to fetch a setting for
$settings
A reference to the Clients model object
$key
The key name of the setting to fetch

Returns

array
containing the key and value for this setting
Blesta API documentation generated by ApiGen