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

  • Accounts
  • Actions
  • ApiKeys
  • Backup
  • CalendarEvents
  • ClientGroups
  • Clients
  • Companies
  • Contacts
  • Countries
  • Coupons
  • CouponTerms
  • CronTasks
  • Currencies
  • EmailGroups
  • Emails
  • EmailVerifications
  • Encryption
  • GatewayManager
  • Invoices
  • InvoiceTemplateManager
  • Languages
  • Logs
  • Marketplace
  • MessageGroups
  • Messages
  • MessengerManager
  • ModuleClientMeta
  • ModuleManager
  • ModuleTypes
  • Navigation
  • PackageGroups
  • PackageOptionGroups
  • PackageOptions
  • Packages
  • Payments
  • Permissions
  • PluginManager
  • Pricings
  • ReportManager
  • ServiceChanges
  • ServiceInvoices
  • Services
  • Settings
  • Staff
  • StaffGroups
  • States
  • SystemEvents
  • Taxes
  • Themes
  • Transactions
  • Users
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Settings

System setting management

Model
Extended by AppModel uses Blesta\Core\Util\Common\Traits\Container
Extended by Settings
Package: blesta\app\models
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/models/settings.php
Methods summary
public mixed
# getSettings( )

Fetches all system settings

Fetches all system settings

Returns

mixed
An array of objects with key/value pairs of settings, false if no results found
public mixed
# getSetting( string $key )

Fetch a single setting by key name

Fetch a single setting by key name

Parameters

$key
The key name of the setting to fetch

Returns

mixed
An stdObject containg the key and value, false if no such key exists
public
# setSettings( array $settings, array $value_keys = null )

Sets a group of settings with key/value pairs

Sets a group of settings with key/value pairs

Parameters

$settings
Settings to set as key/value pairs
$value_keys
An array of key values to accept as valid fields

See

Settings::setSetting()
public
# setSetting( string $key, string $value, mixed $encrypted = null, integer $inherit = null )

Sets the setting with the given key, overwriting any existing value with that key

Sets the setting with the given key, overwriting any existing value with that key

Parameters

$key
The setting identifier
$value
The value to set for this setting
$encrypted

True to encrypt $value, false to store unencrypted, null to encrypt if currently set to encrypt

$inherit
Whether or not the setting should be inheritable
public
# unsetSetting( string $key )

Unsets a setting from the system settings. CAUTION: This method will physically remove the setting from the system, and could have dire consequences. You should never use this method, except when attempting to remove a setting created by Settings::setSettings() or Settings::setSetting() that did not previously exist for this installation.

Unsets a setting from the system settings. CAUTION: This method will physically remove the setting from the system, and could have dire consequences. You should never use this method, except when attempting to remove a setting created by Settings::setSettings() or Settings::setSetting() that did not previously exist for this installation.

Parameters

$key
The setting to unset
public string
# getVersion( )

Returns the source version of Blesta

Returns the source version of Blesta

Returns

string
The source version of Blesta

See

Settings::getDbVersion()
public string
# getDbVersion( )

Returns the database version of Blesta. A shortcut for Settings::getSetting("database_version"). Often this will not be exactly the same as the source version because database changes are not made in every sourve version update.

Returns the database version of Blesta. A shortcut for Settings::getSetting("database_version"). Often this will not be exactly the same as the source version because database changes are not made in every sourve version update.

Returns

string
The source version of Blesta

See

Settings::getVersion()
public boolean
# upgradable( )

Returns whether or not there are upgrade tasks to run

Returns whether or not there are upgrade tasks to run

Returns

boolean
True if there are upgrade tasks to run, false otherwise
Methods inherited from AppModel
_(), __construct(), boolToInt(), currencyToDecimal(), dateToUtc(), errors(), getPerPage(), ifSet(), loadCrypto(), setDefaultIfEmpty(), setPerPage(), setRulesIfSet(), strToBool(), systemDecrypt(), systemEncrypt(), systemHash(), truncateDecimal(), validateExists(), validateStateCountry()
Methods used from Blesta\Core\Util\Common\Traits\Container
getFromContainer()
Properties inherited from AppModel
$logger, $replacement_keys
Blesta API documentation generated by ApiGen