-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from catalyst/issue223
issue #223: Moodle 4.4 support
- Loading branch information
Showing
126 changed files
with
302 additions
and
13,875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ | |
|
||
/** | ||
* HTTP action step class. | ||
* | ||
* @package tool_trigger | ||
* @copyright Matt Porritt <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
|
@@ -51,6 +50,8 @@ class http_post_action_step extends base_action_step { | |
protected $headers; | ||
protected $params; | ||
private $httphandler = null; | ||
private $expectedresponse; | ||
private $jsonencode; | ||
|
||
/** | ||
* The fields supplied by this step. | ||
|
@@ -127,15 +128,11 @@ public function get_http_client() { | |
* @return array if execution was succesful and the response from the execution. | ||
*/ | ||
public function execute($step, $trigger, $event, $stepresults) { | ||
global $CFG; | ||
require_once($CFG->dirroot . '/admin/tool/trigger/guzzle/autoloader.php'); | ||
|
||
$this->update_datafields($event, $stepresults); | ||
|
||
$headers = $this->render_datafields($this->headers); | ||
$headers = explode("\n", str_replace("\r\n", "\n", $headers)); | ||
$headers = \GuzzleHttp\headers_from_lines($headers); | ||
|
||
$headers = \GuzzleHttp\Utils::headersFromLines($headers); | ||
// ... urlencode the values of any substitutions being placed into the URL | ||
// or the POST params. | ||
$urlencodecallback = function($v) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,11 @@ class workflow { | |
*/ | ||
public $numsteps; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $debug; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.