55 public function __call($sMethod, $aArgs)
57 if (defined(
'OXID_PHP_UNIT')) {
58 if (substr($sMethod, 0, 4) ==
"UNIT") {
59 $sMethod = str_replace(
"UNIT",
"_", $sMethod);
61 if (method_exists($this, $sMethod)) {
62 return call_user_func_array(array(& $this, $sMethod), $aArgs);
66 throw new oxSystemComponentException(
"Function '$sMethod' does not exist or is not accessible! (" . get_class($this) .
")" . PHP_EOL);
85 if (defined(
'OXID_PHP_UNIT')) {
86 if (isset($this->unitCustModConf)) {
87 return $this->unitCustModConf;
93 if (self::$_oConfig == null) {
109 if (defined(
'OXID_PHP_UNIT')) {
110 $this->unitCustModConf = $oConfig;
115 self::$_oConfig = $oConfig;
125 if (defined(
'OXID_PHP_UNIT')) {
126 if (isset($this->unitCustModSess)) {
127 return $this->unitCustModSess;
133 if (self::$_oSession == null) {
149 if (defined(
'OXID_PHP_UNIT')) {
150 $this->unitCustModSess = $oSession;
155 self::$_oSession = $oSession;
165 if (defined(
'OXID_PHP_UNIT')) {
166 if (isset($this->unitCustModUser)) {
167 return $this->unitCustModUser;
169 $oUser =
oxNew(
'oxuser');
170 if ($oUser->loadActiveUser()) {
177 if (self::$_oActUser === null) {
178 self::$_oActUser =
false;
179 $oUser =
oxNew(
'oxuser');
180 if ($oUser->loadActiveUser()) {
181 self::$_oActUser = $oUser;
197 if (defined(
'OXID_PHP_UNIT')) {
198 $this->unitCustModUser = $oUser;
203 self::$_oActUser = $oUser;
213 if (self::$_blIsAdmin === null) {
227 self::$_blIsAdmin = $blAdmin;