2010-12-08 15:23:48 +00:00
|
|
|
<?php
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
G::LoadClass('processMap');
|
|
|
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
|
if ( isset($_GET['pid'] ) )
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->getExtInputDocumentsCriteria($_GET['pid']);
|
|
|
|
|
array_shift($rows);
|
|
|
|
|
}
|
2010-12-09 09:54:34 +00:00
|
|
|
|
2010-12-08 15:23:48 +00:00
|
|
|
$result['totalCount'] = count($rows);
|
|
|
|
|
$result['data'] = $rows;
|
|
|
|
|
print json_encode( $result) ;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch ( Exception $e ) {
|
|
|
|
|
print json_encode ( $e->getMessage() );
|
|
|
|
|
}
|