Ejemplo n.º 1
0
 function processAsService($aModule, $sMethod, $aParams, $sClass = "Module")
 {
     $sMethod = 'service' . str_replace(' ', '', ucwords(str_replace('_', ' ', $sMethod)));
     if (isset($GLOBALS['bx_profiler'])) {
         $GLOBALS['bx_profiler']->beginModule('service', $sPrHash = uniqid(rand()), $aModule, $sClass, $sMethod);
     }
     $mixedRet = BxDolRequest::_perform($aModule, $sClass, $sMethod, $aParams, false);
     if (isset($GLOBALS['bx_profiler'])) {
         $GLOBALS['bx_profiler']->endModule('service', $sPrHash);
     }
     return $mixedRet;
 }
Ejemplo n.º 2
0
 public static function processAsService($aModule, $sMethod, $aParams, $sClass = "Module")
 {
     if (isset($aModule['name']) && 'system' == $aModule['name'] && 'Module' == $sClass) {
         $sClass = 'BaseServices';
     }
     $sMethod = 'service' . bx_gen_method_name($sMethod);
     if (isset($GLOBALS['bx_profiler'])) {
         $GLOBALS['bx_profiler']->beginModule('service', $sPrHash = uniqid(rand()), $aModule, $sClass, $sMethod);
     }
     $mixedRet = BxDolRequest::_perform($aModule, $sClass, $sMethod, $aParams, false);
     if (isset($GLOBALS['bx_profiler'])) {
         $GLOBALS['bx_profiler']->endModule('service', $sPrHash);
     }
     return $mixedRet;
 }