Пример #1
0
 public function addRequest(Request $Request)
 {
     if (!$Request instanceof Request) {
         return false;
     }
     $this->_arRequestList[$Request->_getID(self::_FRIEND_CLASS_LINK)] = $Request;
     $Request->_connectMultiHandler($this->_curlMulti);
     $Request->setCaching($this->_bCaching, $this->_bCachingCheckFileSize);
     if ($this->_timeout > 0) {
         $Request->setTimeout($this->_timeout);
     } else {
         $requestTimeOut = $Request->getTimeout();
         if ($requestTimeOut > $this->_timeoutRequestsMax) {
             $this->_timeoutRequestsMax = $Request->getTimeout();
         }
     }
     $this->_iRequest++;
     return true;
 }