Public Member Functions | |
oxNewArticle ($sOxID, $aProperties=array()) | |
resetInstanceCache ($sClassName=null) | |
generateUId () | |
getClassName ($sClassName) | |
getShopId () | |
getModuleVar ($sModuleVarName) | |
setModuleVar ($sModuleVarName, $aValues) | |
Static Public Member Functions | |
static | getInstance () |
static | setClassInstance ($sClassName, $oInstance) |
static | resetClassInstances () |
static | resetModuleVars () |
Public Attributes | |
const | CACHE_FILE_PREFIX = "config" |
Protected Member Functions | |
_getActiveModuleChain ($aClassChain) | |
_makeSafeModuleClassParents ($aClassChain, $sBaseModule) | |
_getConfKey () | |
_getShopUrlMap () | |
_getCacheDir () | |
_getCacheFileName ($sModuleVarName, $sShopId=null) | |
_getModuleVarFromDB ($sModuleVarName) | |
_getFromCache ($sModuleVarName, $blSubshopSpecific=true) | |
_setToCache ($sVarName, $sValue, $blSubshopSpecific=true) | |
Protected Attributes | |
$_aClassNameCache = array() | |
Static Protected Attributes | |
static | $_aLoadedArticles = array() |
static | $_aInstanceCache = array() |
static | $_aModuleVars = array() |
static | $_aClassInstances = array() |
Static Private Attributes | |
static | $_instance = null |
Object Factory implementation (oxNew() method is implemented in this class).
Definition at line 6 of file oxutilsobject.php.
oxUtilsObject._getActiveModuleChain | ( | $ | aClassChain | ) | [protected] |
Checks if module is disabled, added to aDisabledModules config.
array | $aClassChain Module names |
Definition at line 344 of file oxutilsobject.php.
oxUtilsObject._getCacheDir | ( | ) | [protected] |
oxUtilsObject._getCacheFileName | ( | $ | sModuleVarName, | |
$ | sShopId = null | |||
) | [protected] |
oxUtilsObject._getConfKey | ( | ) | [protected] |
Returns configuration key. This method is independent from oxConfig functionality.
Definition at line 530 of file oxutilsobject.php.
oxUtilsObject._getFromCache | ( | $ | sModuleVarName, | |
$ | blSubshopSpecific = true | |||
) | [protected] |
Returns shop module variable value from cache. This method is independent from oxConfig class and does not use database.
string | $sModuleVarName Module variable name | |
bool | $blSubshopSpecific Indicates should cache be shop specific or not |
Definition at line 662 of file oxutilsobject.php.
oxUtilsObject._getModuleVarFromDB | ( | $ | sModuleVarName | ) | [protected] |
Returns shop module variable value directly from database.
string | $sModuleVarName Module variable name |
Definition at line 636 of file oxutilsobject.php.
oxUtilsObject._getShopUrlMap | ( | ) | [protected] |
Returns shop url to id map from config.
Definition at line 542 of file oxutilsobject.php.
oxUtilsObject._makeSafeModuleClassParents | ( | $ | aClassChain, | |
$ | sBaseModule | |||
) | [protected] |
Creates middle classes if needed.
oxSystemComponentException | missing system component exception |
Definition at line 399 of file oxutilsobject.php.
oxUtilsObject._setToCache | ( | $ | sVarName, | |
$ | sValue, | |||
$ | blSubshopSpecific = true | |||
) | [protected] |
Writes shop module variable information to cache.
string | $sVarName Variable name | |
string | $sValue Variable value. | |
bool | $blSubshopSpecific Indicates should cache be shop specific or not |
Definition at line 695 of file oxutilsobject.php.
oxUtilsObject.generateUId | ( | ) |
oxUtilsObject.getClassName | ( | $ | sClassName | ) |
Returns name of class file, according to class name.
string | $sClassName Class name |
Definition at line 301 of file oxutilsobject.php.
static oxUtilsObject.getInstance | ( | ) | [static] |
oxUtilsObject.getModuleVar | ( | $ | sModuleVarName | ) |
Retrieves module configuration variable for the base shop. Currently getModuleVar() is expected to be called with one of the values: aModules | aDisabledModules | aModulePaths This method is independent from oxConfig functionality.
string | $sModuleVarName Configuration array name |
Definition at line 484 of file oxutilsobject.php.
oxUtilsObject.getShopId | ( | ) |
Returns active shop id. This method works independently from other classes.
Definition at line 470 of file oxutilsobject.php.
oxUtilsObject.oxNewArticle | ( | $ | sOxID, | |
$ | aProperties = array() | |||
) |
Creates and returns oxArticle (or subclass) object.
string | $sOxID ID to load subclass type from database | |
array | $aProperties array of properties to assign |
Definition at line 239 of file oxutilsobject.php.
static oxUtilsObject.resetClassInstances | ( | ) | [static] |
oxUtilsObject.resetInstanceCache | ( | $ | sClassName = null |
) |
Resests instance cache
string | $sClassName class name in the cache |
Definition at line 265 of file oxutilsobject.php.
static oxUtilsObject.resetModuleVars | ( | ) | [static] |
Resets previously set module information.
Definition at line 109 of file oxutilsobject.php.
static oxUtilsObject.setClassInstance | ( | $ | sClassName, | |
$ | oInstance | |||
) | [static] |
Factory instance setter. Sets the instance to be returned over later called oxNew(). This method is mostly intended to be used by phpUnit tests.
string | $sClassName Class name expected to be later supplied over oxNew | |
object | $oInstance Instance object |
Definition at line 86 of file oxutilsobject.php.
oxUtilsObject.setModuleVar | ( | $ | sModuleVarName, | |
$ | aValues | |||
) |
Sets module information variable. The variable is set statically and is not saved for future.
string | $sModuleVarName Configuration array name | |
array | $aValues Module name values |
Definition at line 514 of file oxutilsobject.php.
oxUtilsObject.$_aClassInstances = array() [static, protected] |
Definition at line 47 of file oxutilsobject.php.
oxUtilsObject.$_aClassNameCache = array() [protected] |
Definition at line 19 of file oxutilsobject.php.
oxUtilsObject.$_aInstanceCache = array() [static, protected] |
Definition at line 33 of file oxutilsobject.php.
oxUtilsObject.$_aLoadedArticles = array() [static, protected] |
Definition at line 26 of file oxutilsobject.php.
oxUtilsObject.$_aModuleVars = array() [static, protected] |
Definition at line 40 of file oxutilsobject.php.
oxUtilsObject.$_instance = null [static, private] |
Definition at line 54 of file oxutilsobject.php.
const oxUtilsObject.CACHE_FILE_PREFIX = "config" |
Cache file prefix
Definition at line 12 of file oxutilsobject.php.