示例#1
0
文件: ESL.php 项目: swk/bluebox
 function execute($app, $arg = null, $uuid = null)
 {
     switch (func_num_args()) {
         case 1:
             $r = ESLconnection_execute($this->_cPtr, $app);
             break;
         case 2:
             $r = ESLconnection_execute($this->_cPtr, $app, $arg);
             break;
         default:
             $r = ESLconnection_execute($this->_cPtr, $app, $arg, $uuid);
     }
     return $r;
 }
示例#2
0
文件: ESL.php 项目: baonar/FreeProxy
 function execute($app, $arg = null, $uuid = null)
 {
     switch (func_num_args()) {
         case 1:
             $r = ESLconnection_execute($this->_cPtr, $app);
             break;
         case 2:
             $r = ESLconnection_execute($this->_cPtr, $app, $arg);
             break;
         default:
             $r = ESLconnection_execute($this->_cPtr, $app, $arg, $uuid);
     }
     if (is_resource($r)) {
         $c = substr(get_resource_type($r), strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3);
         if (class_exists($c)) {
             return new $c($r);
         }
         return new ESLevent($r);
     }
     return $r;
 }