message = "TypeSpecial '__USER_ID' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialUserId->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } case 'ProcesMenu__Proces_filtr_id': { $typeSpecialProces = TypespecialVariable::getInstance(-1, '__PROCES'); if (!$typeSpecialProces) { $jsonData = new stdClass(); $jsonData->message = "TypeSpecial '__PROCES' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialProces->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } case 'ProcesMenu__Zasob_filtr_id': { $typeSpecialZasob = TypespecialVariable::getInstance(-1, '__ZASOB'); if (!$typeSpecialZasob) { $jsonData = new stdClass(); $jsonData->message = "TypeSpecial '__ZASOB' not exists"; echo json_encode($jsonData); exit; } $query = V::get('q', '', $_REQUEST); $rawRows = null; $jsonData = array(); $queryParams = array(); $rows = $typeSpecialZasob->getValuesWithExports($query, $queryParams); if($DBG){echo'
rows('.$query.') (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($rows);echo'
';} foreach ($rows as $kID => $vItem) { $itemJson = new stdClass(); $itemJson->id = $vItem->id; $itemJson->name = $vItem->param_out; if (!empty($vItem->exports)) { $itemJson->exports = $vItem->exports; } $jsonData[] = $itemJson; } echo json_encode($jsonData); break; } } exit; } } }