remove cruft here, add cruft there...
This commit is contained in:
parent
bd02930982
commit
2cc1a4f37c
@ -34,8 +34,6 @@ class KnownInstanceGuids
|
|||||||
const ElementContent__UserNameForLoginPage = "c67f305ebd4d4628816b55fb85ea1b67";
|
const ElementContent__UserNameForLoginPage = "c67f305ebd4d4628816b55fb85ea1b67";
|
||||||
const ElementContent__PasswordForLoginPage = "51b51be344fd48f1971f682aee0a6132";
|
const ElementContent__PasswordForLoginPage = "51b51be344fd48f1971f682aee0a6132";
|
||||||
|
|
||||||
const Element__ViewElementContent = "e68bb6c429eb4c77908a1b3793c952bc";
|
|
||||||
|
|
||||||
|
|
||||||
const Alignment__Near = "35ea407a45e1462fa923a526d12fbc47";
|
const Alignment__Near = "35ea407a45e1462fa923a526d12fbc47";
|
||||||
const Alignment__Center = "{63179b92-9a6a-495b-a823-f45e353be9d8}";
|
const Alignment__Center = "{63179b92-9a6a-495b-a823-f45e353be9d8}";
|
||||||
|
|||||||
@ -25,6 +25,8 @@
|
|||||||
*/
|
*/
|
||||||
$oms = mocha_get_oms();
|
$oms = mocha_get_oms();
|
||||||
|
|
||||||
|
echo ("postbakc!");
|
||||||
|
|
||||||
$values = array();
|
$values = array();
|
||||||
foreach ($_POST as $key => $value)
|
foreach ($_POST as $key => $value)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -18,13 +18,6 @@
|
|||||||
<Reference TagPrefix="wcx" NamespacePath="Phast\WebControls" />
|
<Reference TagPrefix="wcx" NamespacePath="Phast\WebControls" />
|
||||||
</References>
|
</References>
|
||||||
<Content>
|
<Content>
|
||||||
<wcx:Section PlaceholderID="aspcContent">
|
|
||||||
<div style="display: block;">
|
|
||||||
<h1><html:Literal id="taskTitle">Test Instance</html:Literal></h1>
|
|
||||||
<p>Cast to Class Instance ID: <html:Literal id="castId" /></p>
|
|
||||||
<p>Instance ID: <html:Literal id="instId" /></p>
|
|
||||||
</div>
|
|
||||||
</wcx:Section>
|
|
||||||
</Content>
|
</Content>
|
||||||
</Page>
|
</Page>
|
||||||
</Pages>
|
</Pages>
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
$castkey = InstanceKey::parse($this->Page->GetPathVariableValue("castinstid"));
|
$castkey = InstanceKey::parse($this->Page->GetPathVariableValue("castinstid"));
|
||||||
|
|
||||||
$inst = $oms->getInstanceByKey($instkey);
|
$inst = $oms->getInstanceByKey($instkey);
|
||||||
$json = $oms->getResponse($inst);
|
$json = $oms->getResponse($inst, $inst);
|
||||||
// print_r($json);
|
// print_r($json);
|
||||||
$htmlRenderer->renderResponse($json["value"]);
|
$htmlRenderer->renderResponse($json["value"]);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Mocha\UI\Tasks;
|
|
||||||
|
|
||||||
use Mocha\Core\KnownInstanceGuids;
|
|
||||||
use Mocha\UI\Tasks\HardcodedTask;
|
|
||||||
|
|
||||||
class ViewElementContent extends HardcodedTask
|
|
||||||
{
|
|
||||||
|
|
||||||
protected function OnProcessUpdates()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function OnRender()
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var MySQLDatabaseOms
|
|
||||||
*/
|
|
||||||
$oms = mocha_get_oms();
|
|
||||||
|
|
||||||
$element = $oms->getInstanceByGlobalIdentifier(KnownInstanceGuids::Element__ViewElementContent);
|
|
||||||
return $element;
|
|
||||||
/*
|
|
||||||
echo ("Related Instance: <br />");
|
|
||||||
print_r($this->RelatedInstance);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user