$flows[] = array("cons_npk" => $flow["cons_npk"], "name" => html_entity_decode($flow["name"]), "surname" => html_entity_decode($flow["surname"]), "auth_email" => $flow["auth_email"], "cons_picture" => $flow["cons_picture"], "attributes" => array());
    }
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($flows));
});
/**
 *  * Okan CIRAN
 * @since 23-05-2016
 */
$app->get("/sendMailConsultant_infoUsersVerbal/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoUsersVerbalBLL');
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vNetworkKey = NULL;
    if (isset($_GET['npk'])) {
        $stripper->offsetSet('npk', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['npk']));
    }
    $stripper->strip();
    if ($stripper->offsetExists('language_code')) {
        $vLanguageCode = $stripper->offsetGet('language_code')->getFilterValue();
    }
    if ($stripper->offsetExists('npk')) {
        $vNetworkKey = $stripper->offsetGet('npk')->getFilterValue();
    }
    $result = $BLL->sendMailConsultant(array('language_code' => $vLanguageCode, 'network_key' => $vNetworkKey));
    $flows = array();
    $app->response()->header("Content-Type", "application/json");
Exemplo n.º 2
0
    }
    $resDataInsert = $BLL->InsertUrgePerson(array('pk' => $pk, 'role_id' => $vRoleId, 'cluster_id' => $vClusterId, 'name' => $vName, 'surname' => $vSurname, 'auth_email' => $vAuthEmail, 'username' => $vAuthEmail));
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resDataInsert));
});
/**
 *  * Okan CIRAN
 * @since 02-09-2016
 */
$app->get("/setPersonPassword_infoUsers/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoUsersBLL');
    $vKey = NULL;
    if (isset($_GET['key'])) {
        $stripper->offsetSet('key', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['key']));
    }
    $vPassword = NULL;
    if (isset($_GET['password'])) {
        $stripper->offsetSet('password', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL1, $app, $_GET['password']));
    }
    $stripper->strip();
    if ($stripper->offsetExists('key')) {
        $vKey = $stripper->offsetGet('key')->getFilterValue();
    }
    if ($stripper->offsetExists('password')) {
        $vPassword = $stripper->offsetGet('password')->getFilterValue();
    }
    $resDataInsert = $BLL->setPersonPassword(array('url' => $_GET['key'], 'key' => $vKey, 'password' => $vPassword));
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resDataInsert));
 $stripper = $app->getServiceManager()->get('filterChainerCustom');
 $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
 $BLL = $app->getBLLManager()->get('sysUnspscCodesBLL');
 $headerParams = $app->request()->headers();
 $componentType = 'bootstrap';
 // 'easyui'
 if (isset($_GET['component_type'])) {
     $componentType = $_GET['component_type'];
 }
 if (!isset($headerParams['X-Public'])) {
     throw new Exception('rest api "pkFillMachineToolFullProperties_sysMachineToolProperties" end point, X-Public variable not found');
 }
 $pk = $headerParams['X-Public'];
 $vLanguageCode = 'tr';
 if (isset($_GET['language_code'])) {
     $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
 }
 $vParentId = 0;
 if (isset($_GET['id'])) {
     $stripper->offsetSet('id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['id']));
 }
 $stripper->strip();
 if ($stripper->offsetExists('language_code')) {
     $vLanguageCode = $stripper->offsetGet('language_code')->getFilterValue();
 }
 if ($stripper->offsetExists('id')) {
     $vParentId = $stripper->offsetGet('id')->getFilterValue();
 }
 $resDataGrid = $BLL->fillUnspscCodesTree(array('language_code' => $vLanguageCode, 'parent_id' => $vParentId));
 $resTotalRowCount = $BLL->fillUnspscCodesTreeRtc(array('language_code' => $vLanguageCode, 'parent_id' => $vParentId));
 $flows = array();
Exemplo n.º 4
0
    $resultArray['rows'] = $flows;
    $app->response()->body(json_encode($resultArray));
});
/**
 *  * Okan CIRAN
 * @since 10-03-2016
 */
$app->get("/pkInsert_logUser/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('logUserBLL');
    $headerParams = $app->request()->headers();
    $Pk = $headerParams['X-Public'];
    $vOpTypeId = 0;
    if (isset($_GET['op_type_id'])) {
        $stripper->offsetSet('op_type_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['op_type_id']));
    }
    $vPath = NULL;
    if (isset($_GET['path'])) {
        $stripper->offsetSet('path', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL1, $app, $_GET['path']));
    }
    $vUrl = '';
    if (isset($_GET['urlx'])) {
        $stripper->offsetSet('urlx', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL1, $app, $_GET['urlx']));
    }
    $vIp = NULL;
    if (isset($_GET['ip'])) {
        $stripper->offsetSet('ip', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL1, $app, $_GET['ip']));
    }
    $vParams = NULL;
    if (isset($_GET['params'])) {
/**
 *  * Okan CIRAN
 * @since 15-06-2016
 */
$app->get("/pkFillPropertieslist_sysMachineToolPropertyDefinition/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysMachineToolPropertyDefinitionBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillPropertieslist_sysMachineToolPropertyDefinition" end point, X-Public variable not found');
    }
    $pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vPropertyName = NULL;
    if (isset($_GET['property_name'])) {
        $stripper->offsetSet('property_name', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['property_name']));
    }
    $vPropertyNameEng = NULL;
    if (isset($_GET['property_name_eng'])) {
        $stripper->offsetSet('property_name_eng', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['property_name_eng']));
    }
    $vUnitcode = NULL;
    if (isset($_GET['unitcode'])) {
        $stripper->offsetSet('unitcode', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['unitcode']));
    }
    $vUnitcodeEng = NULL;
    if (isset($_GET['unitcode_eng'])) {
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resData));
});
/**x
 *  * Okan CIRAN
 * @since 11-03-2016
 */
$app->get("/pkInsert_infoFirmReferences/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoFirmReferencesBLL');
    $headerParams = $app->request()->headers();
    $Pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vFirmId = NULL;
    if (isset($_GET['firm_id'])) {
        $stripper->offsetSet('firm_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['firm_id']));
    }
    $vRefFirmId = NULL;
    if (isset($_GET['ref_firm_id'])) {
        $stripper->offsetSet('ref_firm_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['ref_firm_id']));
    }
    $vTotalProject = 0;
    if (isset($_GET['total_project'])) {
        $stripper->offsetSet('total_project', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['total_project']));
    }
    $vContinuingProject = 0;
    if (isset($_GET['continuing_project'])) {
 *  * Okan CIRAN
 * @since 28-07-2016
 * rest servislere eklendi
 */
$app->get("/pkFillRestServicesOfPrivilegesTree_sysAclRrpRestservices/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysAclRrpRestservicesBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillRestServicesOfPrivilegesTree_sysAclRrpRestservices" end point, X-Public variable not found');
    }
    // $pk = $headerParams['X-Public'];
    $vParentId = 0;
    if (isset($_GET['id'])) {
        $stripper->offsetSet('id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['id']));
    }
    $vRoleId = 0;
    if (isset($_GET['role_id'])) {
        $stripper->offsetSet('role_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['role_id']));
    }
    $vResourceId = 0;
    if (isset($_GET['resource_id'])) {
        $stripper->offsetSet('resource_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['resource_id']));
    }
    $vsearch = null;
    if (isset($_GET['search'])) {
        $stripper->offsetSet('search', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['search']));
    }
    $stripper->strip();
    if ($stripper->offsetExists('id')) {
/**
 *  * Okan CIRAN
 * @since 20-05-2016
 */
$app->get("/pkFillFirmProductsGtip_infoFirmProducts/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoFirmProductsBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillFirmProductsGtip_infoFirmProducts" end point, X-Public variable not found');
    }
    $pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vNpk = NULL;
    if (isset($_GET['npk'])) {
        $stripper->offsetSet('npk', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['npk']));
    }
    $vGtipNoId = NULL;
    if (isset($_GET['gtip_no_id'])) {
        $stripper->offsetSet('gtip_no_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['gtip_no_id']));
    }
    $vGtipKey = NULL;
    if (isset($_GET['gtip_key'])) {
        $stripper->offsetSet('gtip_key', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['gtip_key']));
    }
    $vGtip = NULL;
    if (isset($_GET['gtip'])) {
/**
*  * Okan CIRAN
* @since 18.07.2016
*/
$app->get("/pkFillFirmWorkingPersonalListGrid_infoFirmWorkingPersonnel/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoFirmWorkingPersonnelBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillFirmWorkingPersonalListGrid_infoFirmWorkingPersonnel" end point, X-Public variable not found');
    }
    //  $pk = $headerParams['X-Public'];
    $vName = NULL;
    if (isset($_GET['name'])) {
        $stripper->offsetSet('name', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['name']));
    }
    $vSurname = NULL;
    if (isset($_GET['surname'])) {
        $stripper->offsetSet('surname', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['surname']));
    }
    $vPositions = NULL;
    if (isset($_GET['positions'])) {
        $stripper->offsetSet('positions', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['positions']));
    }
    $vPositionsEng = NULL;
    if (isset($_GET['positions_eng'])) {
        $stripper->offsetSet('positions_eng', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['positions_eng']));
    }
    $vTitle = NULL;
    if (isset($_GET['title'])) {
Exemplo n.º 10
0
    $resultArray['rows'] = $flows;
    $app->response()->body(json_encode($resultArray));
});
/**
 *  * Okan CIRAN
 * @since 13-08-2016
 */
$app->get("/pkTransferRolesActionPrivilege_sysAclActionRrp/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysAclActionRrpBLL');
    $headerParams = $app->request()->headers();
    $Pk = $headerParams['X-Public'];
    $vRoleId = NULL;
    if (isset($_GET['role_id'])) {
        $stripper->offsetSet('role_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['role_id']));
    }
    $vResourceId = NULL;
    if (isset($_GET['resource_id'])) {
        $stripper->offsetSet('resource_id', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_JASON_LVL1, $app, $_GET['resource_id']));
    }
    $vPrivilegeId = NULL;
    if (isset($_GET['privilege_id'])) {
        $stripper->offsetSet('privilege_id', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_JASON_LVL1, $app, $_GET['privilege_id']));
    }
    $stripper->strip();
    if ($stripper->offsetExists('role_id')) {
        $vRoleId = $stripper->offsetGet('role_id')->getFilterValue();
    }
    if ($stripper->offsetExists('resource_id')) {
        $vResourceId = $stripper->offsetGet('resource_id')->getFilterValue();
Exemplo n.º 11
0
        $flows[] = array("text" => html_entity_decode($flow["name"]), "value" => intval($flow["id"]), "selected" => false, "description" => html_entity_decode($flow["description"]), "attributes" => array("active" => $flow["active"]));
    }
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($flows));
});
/**
 *  * Okan CIRAN
 * @since 26-07-2016
 */
$app->get("/pkFillResourceGroups_sysAclModules/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysAclModulesBLL');
    $vParentId = 0;
    if (isset($_GET['id'])) {
        $stripper->offsetSet('id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['id']));
    }
    $vState = NULL;
    if (isset($_GET['state'])) {
        $stripper->offsetSet('state', $stripChainerFactory->get(stripChainers::FILTER_ONLY_STATE_ALLOWED, $app, $_GET['state']));
    }
    $vLastNode = NULL;
    if (isset($_GET['last_node'])) {
        $stripper->offsetSet('last_node', $stripChainerFactory->get(stripChainers::FILTER_ONLY_BOOLEAN_ALLOWED, $app, $_GET['last_node']));
    }
    $vRoles = NULL;
    if (isset($_GET['roles'])) {
        $stripper->offsetSet('roles', $stripChainerFactory->get(stripChainers::FILTER_ONLY_BOOLEAN_ALLOWED, $app, $_GET['roles']));
    }
    $vsearch = null;
    if (isset($_GET['search'])) {
Exemplo n.º 12
0
    $app->response()->body(json_encode($resData));
});
/**x
 *  * Okan CIRAN
 * @since 29-03-2016
 * rest servislere eklendi
 */
$app->get("/pkInsert_leftnavigation/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysNavigationLeftBLL');
    $headerParams = $app->request()->headers();
    $Pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vRoleId = NULL;
    if (isset($_GET['role_id'])) {
        $stripper->offsetSet('role_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['role_id']));
    }
    $vParent = 0;
    if (isset($_GET['parent'])) {
        $stripper->offsetSet('parent', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['parent']));
    }
    $vZindex = 0;
    if (isset($_GET['z_index'])) {
        $stripper->offsetSet('z_index', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['z_index']));
    }
    $vMenuTypesId = 0;
    if (isset($_GET['menu_types_id'])) {
/**
*  * Okan CIRAN
* @since 19.07.2016
*/
$app->get("/pkFillFirmWorkingPersonalEducationListGrid_infoFirmWorkingPersonnelEducation/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoFirmWorkingPersonnelEducationBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillFirmWorkingPersonalEducationListGrid_infoFirmWorkingPersonnelEducation" end point, X-Public variable not found');
    }
    //  $pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vDiplomaName = NULL;
    if (isset($_GET['diploma_name'])) {
        $stripper->offsetSet('diploma_name', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['diploma_name']));
    }
    $vProfilePublic = 0;
    if (isset($_GET['profile_public'])) {
        $stripper->offsetSet('profile_public', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['profile_public']));
    }
    $vCountryId = 91;
    if (isset($_GET['country_id'])) {
        $stripper->offsetSet('country_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['country_id']));
    }
    $vUniversityId = 0;
    if (isset($_GET['university_id'])) {
    }
    $resData = $BLL->makeActiveOrPassive(array('id' => $vId, 'pk' => $pk));
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resData));
});
/**x
 *  * Okan CIRAN
 * @since 21-06-2016
 */
$app->get("/pkDelete_sysOsbClustersAlliance/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysOsbClustersAllianceBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkDelete_sysOsbClustersAlliance" end point, X-Public variable not found');
    }
    $pk = $headerParams['X-Public'];
    $vId = NULL;
    if (isset($_GET['id'])) {
        $stripper->offsetSet('id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['id']));
    }
    $stripper->strip();
    if ($stripper->offsetExists('id')) {
        $vId = $stripper->offsetGet('id')->getFilterValue();
    }
    $resDataDeleted = $BLL->Delete(array('id' => $vId, 'pk' => $pk));
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resDataDeleted));
});
$app->run();
/**
 *  * Okan CIRAN
 * @since 28-07-2016
 */
$app->get("/pkFillServicesGroupsList_sysServicesGroups/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysServicesGroupsBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillServicesGroupsList_sysServicesGroups" end point, X-Public variable not found');
    }
    //  $pk = $headerParams['X-Public'];
    $vPage = NULL;
    if (isset($_GET['page'])) {
        $stripper->offsetSet('page', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['page']));
    }
    $vRows = NULL;
    if (isset($_GET['rows'])) {
        $stripper->offsetSet('rows', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['rows']));
    }
    $vSort = NULL;
    if (isset($_GET['sort'])) {
        $stripper->offsetSet('sort', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['sort']));
    }
    $vOrder = NULL;
    if (isset($_GET['order'])) {
        $stripper->offsetSet('order', $stripChainerFactory->get(stripChainers::FILTER_ONLY_ORDER, $app, $_GET['order']));
    }
    $filterRules = null;
    if (isset($_GET['filterRules'])) {
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resDataDeleted));
});
/**x
 *  * Okan CIRAN
 * @since 25-02-2016
 */
$app->get("/pkInsert_infoFirmMachineTool/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('infoFirmMachineToolBLL');
    $headerParams = $app->request()->headers();
    $Pk = $headerParams['X-Public'];
    $vLanguageCode = 'tr';
    if (isset($_GET['language_code'])) {
        $stripper->offsetSet('language_code', $stripChainerFactory->get(stripChainers::FILTER_ONLY_LANGUAGE_CODE, $app, $_GET['language_code']));
    }
    $vProfilePublic = 0;
    if (isset($_GET['profile_public'])) {
        $stripper->offsetSet('profile_public', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['profile_public']));
    }
    $vOperationTypeId = NULL;
    if (isset($_GET['operation_type_id'])) {
        $stripper->offsetSet('operation_type_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['operation_type_id']));
    }
    $vAvailabilityId = 0;
    if (isset($_GET['availability_id'])) {
        $stripper->offsetSet('availability_id', $stripChainerFactory->get(stripChainers::FILTER_ONLY_NUMBER_ALLOWED, $app, $_GET['availability_id']));
    }
    $vMachineId = NULL;
    if (isset($_GET['machine_id'])) {
Exemplo n.º 17
0
*  * Okan CIRAN
* @since 21.07.2016
* rest servislere eklendi
*/
$app->get("/pkFillMenuTypeListGrid_sysMenuTypes/", function () use($app) {
    $stripper = $app->getServiceManager()->get('filterChainerCustom');
    $stripChainerFactory = new \Services\Filter\Helper\FilterChainerFactory();
    $BLL = $app->getBLLManager()->get('sysMenuTypesBLL');
    $headerParams = $app->request()->headers();
    if (!isset($headerParams['X-Public'])) {
        throw new Exception('rest api "pkFillMenuTypeListGrid_sysMenuTypes" end point, X-Public variable not found');
    }
    //  $pk = $headerParams['X-Public'];
    $vName = NULL;
    if (isset($_GET['name'])) {
        $stripper->offsetSet('name', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['name']));
    }
    $vNameEng = NULL;
    if (isset($_GET['name_eng'])) {
        $stripper->offsetSet('name_eng', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['name_eng']));
    }
    $vDescription = '';
    if (isset($_GET['description'])) {
        $stripper->offsetSet('description', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['description']));
    }
    $vDescriptionEng = '';
    if (isset($_GET['description_eng'])) {
        $stripper->offsetSet('description_eng', $stripChainerFactory->get(stripChainers::FILTER_PARANOID_LEVEL2, $app, $_GET['description_eng']));
    }
    $vActive = NULL;
    if (isset($_GET['active'])) {