Public Member Functions | Protected Member Functions | Protected Attributes

Shop_Config Class Reference

Inheritance diagram for Shop_Config:
Collaboration diagram for Shop_Config:

List of all members.

Public Member Functions

 render ()
 saveConfVars ()
 loadConfVars ($sShopId, $sModule)
 _unserializeConfVar ($sType, $sName, $sValue)
 _serializeConfVar ($sType, $sName, $mValue)
 getEditObjectId ()

Protected Member Functions

 _getModuleForConfigVars ()
 _parseConstraint ($sType, $sConstraint)
 _serializeConstraint ($sType, $sConstraint)
 _arrayToMultiline ($aInput)
 _multilineToArray ($sMultiline)
 _aarrayToMultiline ($aInput)
 _multilineToAarray ($sMultiline)

Protected Attributes

 $_sThisTemplate = 'shop_config.tpl'
 $_aSkipMultiline = array('aHomeCountry', 'iShopID_TrustedShops', 'aTsUser', 'aTsPassword')
 $_aParseFloat = array('iMinOrderPrice')
 $_aConfParams

Detailed Description

Admin shop config manager. Collects shop config information, updates it on user submit, etc. Admin Menu: Main Menu -> Core Settings -> General.

Definition at line 8 of file shop_config.php.


Member Function Documentation

Shop_Config._aarrayToMultiline ( aInput  )  [protected]

Converts associative array to multiline text. Returns this text.

Parameters:
array $aInput Array to convert
Returns:
string

Definition at line 384 of file shop_config.php.

Shop_Config._arrayToMultiline ( aInput  )  [protected]

Converts simple array to multiline text. Returns this text.

Parameters:
array $aInput Array with text
Returns:
string

Definition at line 345 of file shop_config.php.

Shop_Config._getModuleForConfigVars (  )  [protected]

return theme filter for config variables

Returns:
string

Reimplemented in Module_Config, and Theme_Config.

Definition at line 100 of file shop_config.php.

Shop_Config._multilineToAarray ( sMultiline  )  [protected]

Converts Multiline text to associative array. Returns this array.

Parameters:
string $sMultiline Multiline text
Returns:
array

Reimplemented in dyn_trusted_ratings.

Definition at line 406 of file shop_config.php.

Shop_Config._multilineToArray ( sMultiline  )  [protected]

Converts Multiline text to simple array. Returns this array.

Parameters:
string $sMultiline Multiline text
Returns:
array

Reimplemented in dyn_trusted_ratings.

Definition at line 362 of file shop_config.php.

Shop_Config._parseConstraint ( sType,
sConstraint 
) [protected]

parse constraint from type and serialized values

Parameters:
string $sType variable type
string $sConstraint serialized constraint
Returns:
mixed

Definition at line 222 of file shop_config.php.

Shop_Config._serializeConfVar ( sType,
sName,
mValue 
)

Serialize config var depending on it's type

Parameters:
string $sType var type
string $sName var name
mixed $mValue var value
Returns:
string

Definition at line 308 of file shop_config.php.

Shop_Config._serializeConstraint ( sType,
sConstraint 
) [protected]

serialize constraint from type and value

Parameters:
string $sType variable type
mixed $sConstraint constraint value
Returns:
string

Definition at line 240 of file shop_config.php.

Shop_Config._unserializeConfVar ( sType,
sName,
sValue 
)

Unserialize config var depending on it's type

Parameters:
string $sType var type
string $sName var name
string $sValue var value
Returns:
mixed

Definition at line 259 of file shop_config.php.

Shop_Config.getEditObjectId (  ) 

Returns active/editable object id

Returns:
string

Reimplemented from oxAdminView.

Definition at line 430 of file shop_config.php.

Shop_Config.loadConfVars ( sShopId,
sModule 
)

Load and parse config vars from db. Return value is a map: 'vars' => config variable values as array[type][name] = value 'constraints' => constraints list as array[name] = constraint 'grouping' => grouping info as array[name] = grouping

Parameters:
string $sShopId Shop id
string $sModule module to load (empty string is for base values)
Returns:
array

Definition at line 164 of file shop_config.php.

Shop_Config.render (  ) 

Executes parent method parent.render(), passes shop configuration parameters to Smarty and returns name of template file "shop_config.tpl".

Returns:
string

Reimplemented from oxAdminDetails.

Reimplemented in dyn_econda, dyn_trusted, dyn_trusted_ratings, Module_Config, Shop_Seo, Shop_System, and Theme_Config.

Definition at line 30 of file shop_config.php.

Shop_Config.saveConfVars (  ) 

Saves shop configuration variables

Reimplemented in Module_Config, and Theme_Config.

Definition at line 108 of file shop_config.php.


Member Data Documentation

Shop_Config.$_aConfParams [protected]
Initial value:
 array(
        "bool"   => 'confbools',
        "str"    => 'confstrs',
        "arr"    => 'confarrs',
        "aarr"   => 'confaarrs',
        "select" => 'confselects',
        "num"    => 'confnum',
    )

Definition at line 15 of file shop_config.php.

Shop_Config.$_aParseFloat = array('iMinOrderPrice') [protected]

Definition at line 13 of file shop_config.php.

Shop_Config.$_aSkipMultiline = array('aHomeCountry', 'iShopID_TrustedShops', 'aTsUser', 'aTsPassword') [protected]

Reimplemented in dyn_trusted_ratings.

Definition at line 12 of file shop_config.php.

Shop_Config.$_sThisTemplate = 'shop_config.tpl' [protected]

Reimplemented from oxAdminView.

Reimplemented in Shop_License, Shop_Performance, shop_rdfa, and Shop_System.

Definition at line 11 of file shop_config.php.


The documentation for this class was generated from the following file: