isSolrEnabled()) { $data = $ApplicationSolrIndex->getAppGridData($userUid, $start, $limit, $action, $filter, $search, $process, $user, $status, $type, $dateFrom, $dateTo, $callback, $dir, $sort); $result = G::json_encode($data); } else{ G::LoadClass('applications'); $apps = new Applications(); $data = $apps->getAll($userUid, $start, $limit, $action, $filter, $search, $process, $user, $status, $type, $dateFrom, $dateTo, $callback, $dir, $sort); $result = G::json_encode($data); } echo $result; } catch ( Exception $e ) { $msg = array ( 'error' => $e->getMessage() ); print G::json_encode( $msg ) ; }