Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /methods /services /Rest /SimpleMessage.php
Download processmaker-files/workflow/engine/methods/services/Rest/SimpleMessage.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/services/Rest/SimpleMessage.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/methods/services/Rest/SimpleMessage.php
-
curl -L -o SimpleMessage.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/services/Rest/SimpleMessage.php
1.08 kB
| /** | |
| * Class defined to set enough curl configuration. | |
| * | |
| * | |
| * @category Zend | |
| * @package ProcessMaker | |
| * @subpackage workflow | |
| * @copyright Copyright (c) ProcessMaker Colosa Inc. | |
| * @version Release: @2.0.44@ | |
| * @since Class available since Release 2.0.44 | |
| */ | |
| require_once ("CURLMessage.php"); | |
| /** | |
| * Class defined to set enough curl configuration | |
| */ | |
| class SimpleMessage extends CURLMessage | |
| { | |
| public function SimpleMessage () | |
| { | |
| parent::__construct(); | |
| } | |
| /** | |
| * Set the message in order to follow the message format, empty caused this class should not be instanced | |
| */ | |
| protected function format (array $message) | |
| { | |
| } | |
| /** | |
| * Setting CURL Url, enough to attach a message. | |
| */ | |
| protected function setMoreProperties ($messageFormated) | |
| { | |
| //Please, remove this comment, is only for looging proposes. | |
| // | |
| echo "Request: " . $this->server_method . PATH_SEP . $messageFormated . " <br>"; | |
| // | |
| curl_setopt( $this->ch, CURLOPT_URL, $this->server_method . $messageFormated ); | |
| } | |
| } | |