Compare commits
2 Commits
b44f6431e4
...
4da713ae56
| Author | SHA1 | Date | |
|---|---|---|---|
| 4da713ae56 | |||
| 9d575a4efc |
@ -361,8 +361,6 @@
|
||||
public function getResponse($element, InstanceReference|null $relatedInstance = null) // , array|null $workData = null)
|
||||
{
|
||||
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->InstanceKey . "/element";
|
||||
echo ("getResponse (' " . $url . " ');<br />");
|
||||
|
||||
if ($relatedInstance !== null)
|
||||
{
|
||||
// related instance is passed in by:
|
||||
@ -421,10 +419,15 @@
|
||||
public function processElement(InstanceReference $element, array $values) : array
|
||||
{
|
||||
$url = "/tenants/" . $this->getTenantName() . "/instances/" . $element->GlobalIdentifier . "/element";
|
||||
echo ("<br /><br />POST " . $url . "<br />Values:<br />");
|
||||
echo ("<br /><br />");
|
||||
print_r($values);
|
||||
echo ("<br /><br />");
|
||||
|
||||
$debug = false;
|
||||
if ($debug) {
|
||||
// !!! this will screw up login, use sparingly !!!
|
||||
echo ("<br /><br />POST " . $url . "<br />Values:<br />");
|
||||
echo ("<br /><br />");
|
||||
print_r($values);
|
||||
echo ("<br /><br />");
|
||||
}
|
||||
$result = $this->curl_request_json($url, HttpRequestMethod::POST, $values);
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -46,7 +46,6 @@
|
||||
//*** DO NOT DELETE, WE STILL USE THIS FOR LOGIN ***//
|
||||
if (is_callable($this->ProcessPostbackFunction))
|
||||
{
|
||||
echo ("calling user function");
|
||||
// call user-defined ProcessPostbackFunction
|
||||
return call_user_func($this->ProcessPostbackFunction, $this, $element, $array);
|
||||
}
|
||||
|
||||
@ -64,7 +64,12 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
// header("HTTP/1.1 404 Not Found");
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Content-Type: text/plain");
|
||||
echo ("404 Not Found\n");
|
||||
echo ("Global ID: " . $inst->GlobalIdentifier->__toString() . "\n");
|
||||
echo ($path);
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user