Server IP : 127.0.0.2 / Your IP : 3.144.255.53 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/vendor/darkaonline/ripcord/src/Ripcord/Client/ |
Upload File : |
<?php namespace Ripcord\Client; /** * This class provides the fetch interface for system.multiCall. It is returned * when calling $client->system->multiCall() with no arguments. Upon construction * it puts the originating client into multiCall deferred mode. The client will * gather the requested method calls instead of executing them immediately. It * will them execute all of them, in order, when calling * $client->system->multiCall()->fetch(). * This class extends Ripcord_Client only so it has access to its protected _multiCall * property. */ class MultiCall extends Client { /* * The reference to the originating client to put into multiCall mode. */ private $client = null; /** * This method creates a new multiCall fetch api object. * * MultiCall constructor. * * @param string $client * @param string $methodName */ public function __construct($client, $methodName = 'system.multiCall') { $this->client = $client; $this->methodName = $methodName; } /* * This method puts the client into multiCall mode. While in this mode all * method calls are collected as deferred calls (Ripcord_Client_Call). */ public function start() { $this->client->_multiCall = true; } /* * This method finally calls the clients multiCall method with all deferred * method calls since multiCall mode was enabled. */ public function execute() { if ($this->methodName == 'system.multiCall') { return $this->client->system->multiCall($this->client->_multiCallArgs); } else { // system.multicall return $this->client->system->multicall($this->client->_multiCallArgs); } } }