Files
luos/gulliver/bin/tasks/templates/pluginStepApplicationAjax.php.tpl
Victor Saisa Lopez 9df68b5307 BUG 8973 "Replace all instances of json_encode() and json_decode()..." SOLVED
- Problems with functions json_encode and json_decode in PHP 5.2
- Replace json_encode and json_decode with G::json_encode and G::json_decode
2012-04-23 12:34:16 -04:00

26 lines
740 B
Smarty

<?php
//require_once ("classes/model/class.case.php");
G::LoadClass("case");
try {
//SYS_SYS //Workspace name
//PROCESS //Process UID
//APPLICATION //Case UID
//INDEX //Number delegation
$oApp = new Cases();
$aFields = $oApp->loadCase($_SESSION["APPLICATION"]);
$aData = $aFields["APP_DATA"];
$aResult = array();
foreach ($aData as $index => $value) {
$aResult[] = array("VARIABLE" => $index, "VALUE" => $value);
}
//echo "{success: " . true . ", resultTotal: " . count($aResult) . ", resultRoot: " . G::json_encode($aResult) . "}";
echo G::json_encode(array("success" => true, "resultTotal" => count($aResult), "resultRoot" => $aResult));
} catch (Exception $e) {
echo null;
}
?>