Example #1
0
 /**
  * Return the WebService object.
  * @return WebService
  */
 public static function WS()
 {
     if (self::$_instance == null) {
         self::$_instance = new WebServiceWeb();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * Sends email.
  * @param string email
  * @param string szablon
  * @return string
  */
 public function SendEmail($email, $szablon)
 {
     try {
         WebServiceWeb::WS()->LoginEx();
         $ret = WebServiceWeb::WS()->SendEmail($email, $szablon);
         WebServiceWeb::WS()->Logout();
         return $ret;
     } catch (Exception $ex) {
         Errors::LogError("WebAPI:SendEmail", $ex->getMessage());
         return "ERROR";
     }
 }