Static Private Attributes |
static | $_instance = null |
Detailed Description
Object Factory implementation (oxNew() method is implemented in this class).
Definition at line 9 of file oxutilsobject.php.
Member Function Documentation
oxUtilsObject::_getActiveModuleChain |
( |
|
$aClassChain | ) |
|
|
protected |
Checks if module is disabled, added to aDisabledModules config.
- Parameters
-
- Returns
- array
Definition at line 311 of file oxutilsobject.php.
oxUtilsObject::_getCacheDir |
( |
| ) |
|
|
protected |
oxUtilsObject::_getCacheFileName |
( |
|
$sModuleVarName, |
|
|
|
$sShopId = null |
|
) |
| |
|
protected |
Returns module file cache name.
- Parameters
-
string | $sModuleVarName | Module variable name |
int | $sShopId | Shop id |
- Returns
- string
Definition at line 589 of file oxutilsobject.php.
oxUtilsObject::_getConfKey |
( |
| ) |
|
|
protected |
Returns configuration key. This method is independent from oxConfig functionality.
- Returns
- string
Definition at line 502 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.
- Parameters
-
string | $sModuleVarName | Module variable name |
bool | $blSubshopSpecific | Indicates should cache be shop specific or not |
- Returns
- string
Definition at line 637 of file oxutilsobject.php.
oxUtilsObject::_getModuleVarFromDB |
( |
|
$sModuleVarName | ) |
|
|
protected |
Returns shop module variable value directly from database.
- Parameters
-
string | $sModuleVarName | Module variable name |
- Returns
- string
Definition at line 611 of file oxutilsobject.php.
oxUtilsObject::_getShopUrlMap |
( |
| ) |
|
|
protected |
Returns shop url to id map from config.
- Returns
- array
Definition at line 515 of file oxutilsobject.php.
oxUtilsObject::_setToCache |
( |
|
$sVarName, |
|
|
|
$sValue, |
|
|
|
$blSubshopSpecific = true |
|
) |
| |
|
protected |
Writes shop module variable information to cache.
- Parameters
-
string | $sVarName | Variable name |
string | $sValue | Variable value. |
bool | $blSubshopSpecific | Indicates should cache be shop specific or not |
Definition at line 668 of file oxutilsobject.php.
oxUtilsObject::generateUId |
( |
| ) |
|
oxUtilsObject::getClassName |
( |
|
$sClassName | ) |
|
Returns name of class file, according to class name.
- Parameters
-
string | $sClassName | Class name |
- Returns
- string
Definition at line 268 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.
- Parameters
-
string | $sModuleVarName | Configuration array name |
- Returns
- array
Definition at line 458 of file oxutilsobject.php.
oxUtilsObject::getShopId |
( |
| ) |
|
Returns active shop id. This method works independently from other classes.
- Returns
- string
Definition at line 444 of file oxutilsobject.php.
static oxUtilsObject::resetClassInstances |
( |
| ) |
|
|
static |
oxUtilsObject::resetInstanceCache |
( |
|
$sClassName = null | ) |
|
Resets instance cache
- Parameters
-
string | $sClassName | class name in the cache |
- Returns
- null;
Definition at line 230 of file oxutilsobject.php.
static oxUtilsObject::resetModuleVars |
( |
| ) |
|
|
static |
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.
- Parameters
-
string | $sClassName | Class name expected to be later supplied over oxNew |
object | $oInstance | Instance object |
Definition at line 88 of file oxutilsobject.php.
oxUtilsObject::setModuleVar |
( |
|
$sModuleVarName, |
|
|
|
$aValues |
|
) |
| |
Sets module information variable. The variable is set statically and is not saved for future.
- Parameters
-
string | $sModuleVarName | Configuration array name |
array | $aValues | Module name values |
Definition at line 486 of file oxutilsobject.php.
Member Data Documentation
oxUtilsObject::$_aClassInstances = array() |
|
staticprotected |
oxUtilsObject::$_aClassNameCache = array() |
|
protected |
oxUtilsObject::$_aInstanceCache = array() |
|
staticprotected |
oxUtilsObject::$_aLoadedArticles = array() |
|
staticprotected |
oxUtilsObject::$_aModuleVars = array() |
|
staticprotected |
oxUtilsObject::$_instance = null |
|
staticprivate |
const oxUtilsObject::CACHE_FILE_PREFIX = "config" |
The documentation for this class was generated from the following file: