19 lines
424 B
PHP
19 lines
424 B
PHP
|
|
<?php
|
||
|
|
G::LoadClass('processMap');
|
||
|
|
$oProcessMap = new processMap(new DBConnection);
|
||
|
|
|
||
|
|
if (isset($_GET['pid'] ))
|
||
|
|
{
|
||
|
|
$rows = $oProcessMap->getExtCaseTrackerObjectsCriteria($_GET['pid']);
|
||
|
|
}
|
||
|
|
|
||
|
|
if (isset($_GET['tid'] ))
|
||
|
|
{
|
||
|
|
$rows = $oProcessMap->getAvailableExtCaseTrackerObjects($_GET['tid']);
|
||
|
|
}
|
||
|
|
array_shift($rows);
|
||
|
|
$result['totalCount'] = count($rows);
|
||
|
|
$result['data'] = $rows;
|
||
|
|
print json_encode($result);
|
||
|
|
?>
|