Пример #1
0
 /**
  * @param ActionInterface $action
  * @param bool            $throwsException
  *
  * @return array|false
  * @throws \Exception
  */
 public function call(ActionInterface $action, $throwsException = true)
 {
     try {
         $this->checkSecurity();
         $result = $this->soapClient->call($this->sessionId, $action->getMethod(), $action->getArguments());
         return $result;
     } catch (\Exception $e) {
         if ($throwsException) {
             throw $e;
         }
         return false;
     }
 }