54 public function __call( $sMethod, $aArgs )
56 if ( defined(
'OXID_PHP_UNIT' ) ) {
57 if ( substr( $sMethod, 0, 4) ==
"UNIT" ) {
58 $sMethod = str_replace(
"UNIT",
"_", $sMethod );
60 if ( method_exists( $this, $sMethod)) {
61 return call_user_func_array( array( & $this, $sMethod ), $aArgs );
65 throw new oxSystemComponentException(
"Function '$sMethod' does not exist or is not accessible! (" . get_class($this) .
")".PHP_EOL);
84 if ( defined(
'OXID_PHP_UNIT' ) ) {
85 if ( isset( $this->unitCustModConf ) ) {
86 return $this->unitCustModConf;
91 if ( self::$_oConfig == null ) {
107 if ( defined(
'OXID_PHP_UNIT' ) ) {
108 $this->unitCustModConf = $oConfig;
112 self::$_oConfig = $oConfig;
122 if ( defined(
'OXID_PHP_UNIT' ) ) {
123 if ( isset( $this->unitCustModSess ) ) {
124 return $this->unitCustModSess;
129 if ( self::$_oSession == null ) {
145 if ( defined(
'OXID_PHP_UNIT' ) ) {
146 $this->unitCustModSess = $oSession;
150 self::$_oSession = $oSession;
160 if ( defined(
'OXID_PHP_UNIT' ) ) {
161 if ( isset( $this->unitCustModUser ) ) {
162 return $this->unitCustModUser;
164 $oUser =
oxNew(
'oxuser' );
165 if ( $oUser->loadActiveUser() ) {
171 if ( self::$_oActUser === null ) {
172 self::$_oActUser =
false;
173 $oUser =
oxNew(
'oxuser' );
174 if ( $oUser->loadActiveUser() ) {
175 self::$_oActUser = $oUser;
191 if ( defined(
'OXID_PHP_UNIT' ) ) {
192 $this->unitCustModUser = $oUser;
196 self::$_oActUser = $oUser;
206 if ( self::$_blIsAdmin === null ) {
222 self::$_blIsAdmin = $blAdmin;