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__PasswordForLoginPage = "51b51be344fd48f1971f682aee0a6132";
|
||||
|
||||
const Element__ViewElementContent = "e68bb6c429eb4c77908a1b3793c952bc";
|
||||
|
||||
|
||||
const Alignment__Near = "35ea407a45e1462fa923a526d12fbc47";
|
||||
const Alignment__Center = "{63179b92-9a6a-495b-a823-f45e353be9d8}";
|
||||
|
||||
@ -25,6 +25,8 @@
|
||||
*/
|
||||
$oms = mocha_get_oms();
|
||||
|
||||
echo ("postbakc!");
|
||||
|
||||
$values = array();
|
||||
foreach ($_POST as $key => $value)
|
||||
{
|
||||
|
||||
@ -18,13 +18,6 @@
|
||||
<Reference TagPrefix="wcx" NamespacePath="Phast\WebControls" />
|
||||
</References>
|
||||
<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>
|
||||
</Page>
|
||||
</Pages>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
$castkey = InstanceKey::parse($this->Page->GetPathVariableValue("castinstid"));
|
||||
|
||||
$inst = $oms->getInstanceByKey($instkey);
|
||||
$json = $oms->getResponse($inst);
|
||||
$json = $oms->getResponse($inst, $inst);
|
||||
// print_r($json);
|
||||
$htmlRenderer->renderResponse($json["value"]);
|
||||
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