2012-10-02 10:27:57 -04:00
|
|
|
<?php
|
2012-10-02 13:13:19 -04:00
|
|
|
/**
|
|
|
|
|
* Class defined to set enough curl configuration.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @category Zend
|
|
|
|
|
* @package ProcessMaker
|
|
|
|
|
* @subpackage workflow
|
2012-10-02 17:28:12 -04:00
|
|
|
* @copyright Copyright (c) ProcessMaker Colosa Inc.
|
2012-10-02 13:13:19 -04:00
|
|
|
* @version Release: @2.0.44@
|
|
|
|
|
* @since Class available since Release 2.0.44
|
|
|
|
|
*/
|
|
|
|
|
|
2012-10-02 10:27:57 -04:00
|
|
|
require_once("CURLMessage.php");
|
|
|
|
|
|
2012-10-02 13:13:19 -04:00
|
|
|
/**
|
|
|
|
|
* Class defined to set enough curl configuration
|
|
|
|
|
*/
|
2012-10-02 10:27:57 -04:00
|
|
|
class SimpleMessage extends CURLMessage
|
|
|
|
|
{
|
2012-10-02 13:13:19 -04:00
|
|
|
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);
|
|
|
|
|
}
|
2012-10-02 10:27:57 -04:00
|
|
|
}
|
|
|
|
|
?>
|