2010-12-20 15:04:33 +00:00
|
|
|
<?php
|
|
|
|
|
G::LoadClass('processMap');
|
2010-12-23 06:11:56 +00:00
|
|
|
$oProcessMap = new processMap(new DBConnection);
|
2010-12-20 15:04:33 +00:00
|
|
|
|
2010-12-23 06:11:56 +00:00
|
|
|
if ( isset($_GET['pid'] ) && !isset($_GET ['action']))
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->getExtObjectsPermissions($_GET['pid']);
|
|
|
|
|
}
|
2010-12-20 15:04:33 +00:00
|
|
|
|
2010-12-23 06:11:56 +00:00
|
|
|
if ( isset($_GET['pid'] )&& isset($_GET['action']) )
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->newExtObjectPermission($_GET['pid'],$_GET['action']);
|
|
|
|
|
array_shift($rows);
|
|
|
|
|
}
|
|
|
|
|
$result['totalCount'] = count($rows);
|
|
|
|
|
$result['data'] = $rows;
|
2011-04-19 16:26:20 -04:00
|
|
|
print G::json_encode($result);
|
2010-12-20 15:04:33 +00:00
|
|
|
?>
|