Tiger_Model_Config

@api · extends Tiger_Model_Table

Config — the runtime config override layer (see migration 0009).

Read by Tiger_Application_Bootstrap::_initConfigs, which folds the rows onto the ini config cascade (global first, then the current org). Values are dot-notation keys (tiger.skin) mapped into the nested Zend_Config. This is also the per-org theming resolver — an org row tiger.skin reskins that org.

Methods

getForScope()

getForScope($scope, $scopeId = '')

Active config rows for a scope (+ optional scope id). Global uses scope_id ''.

  • $scope string — the scope (global/org/user)
  • $scopeId string — the scope id ('' for global)

Returns Zend_Db_Table_Rowset_Abstract — the matching config rows

get()

get($scope, $scopeId, $key)

Fetch a single config value, or null.

  • $scope string — the scope (global/org/user)
  • $scopeId string — the scope id ('' for global)
  • $key string — the dot-notation config key

Returns string|null — the config value, or null when unset

set()

set($scope, $scopeId, $key, $value)

Upsert a config value for a scope. Returns the config_id.

  • $scope string — the scope (global/org/user)
  • $scopeId string — the scope id ('' for global)
  • $key string — the dot-notation config key
  • $value string — the config value to store

Returns string — the config_id