}
    $result = $BLL->GetUserVerbalConsultant(array('language_code' => $vLanguageCode, 'pk' => $pk));
    $flows = array();
    foreach ($result['resultSet'] as $flow) {
        $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();
Esempio n. 2
0
        $vSurname = $stripper->offsetGet('surname')->getFilterValue();
    }
    if ($stripper->offsetExists('auth_email')) {
        $vAuthEmail = $stripper->offsetGet('auth_email')->getFilterValue();
    }
    $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();
                foreach ($resCombobox as $menu) {
                    $menus[] = array("text" => $menu["unspsc_names"], "value" => $menu["id"], "selected" => false, "description" => $menu["unspsc_name_eng"], "imageSrc" => "");
                }
            }
        }
    }
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($menus));
});
/**
 *  * Okan CIRAN
 * @since 17-03-2016 
 */
$app->get("/pkFillUnspscCodesTree_sysUnspscCodes/", function () use($app) {
    $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']));
    }
Esempio n. 4
0
    foreach ($resDataGrid as $flow) {
        $flows[] = array("id" => $flow["id"], "s_date" => $flow["s_date"], "pk" => $flow["pk"], "op_type_id" => $flow["op_type_id"], "operation_name" => $flow["operation_name"], "url" => $flow["url"], "path" => $flow["path"], "ip" => $flow["ip"], "params" => $flow["params"], "user_id" => $flow["user_id"], "username" => $flow["username"], "attributes" => array("notroot" => true));
    }
    $app->response()->header("Content-Type", "application/json");
    $resultArray = array();
    $resultArray['total'] = $resTotalRowCount[0]['count'];
    $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']));
    }
        $vMachineGrupId = $stripper->offsetGet('machine_grup_id')->getFilterValue();
    }
    if ($stripper->offsetExists('property_id')) {
        $vPropertyId = $stripper->offsetGet('property_id')->getFilterValue();
    }
    $resData = $BLL->transferPropertyMachineGroup(array('machine_grup_id' => $vMachineGrupId, 'property_id' => $vPropertyId, 'pk' => $Pk));
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($resData));
});
/**
 *  * 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;
        $vLanguageCode = $stripper->offsetGet('language_code')->getFilterValue();
    }
    if ($stripper->offsetExists('active')) {
        $vActive = $stripper->offsetGet('active')->getFilterValue();
    }
    $resData = $BLL->update(array('id' => $vId, 'language_code' => $vLanguageCode, 'firm_id' => $vFirmId, 'ref_firm_id' => $vRefFirmId, 'total_project' => $vTotalProject, 'continuing_project' => $vContinuingProject, 'unsuccessful_project' => $vUnsuccessfulProject, 'active' => $vActive, 'pk' => $Pk));
    $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']));
    }
    $resTree = $BLL->fillNotInRestServicesOfPrivilegesTree(array('parent_id' => $vParentId, 'rrp_id' => $vRrpId, 'search' => $vsearch));
    $flows = array();
    foreach ($resTree as $flow) {
        $flows[] = array("id" => $flow["id"], "text" => html_entity_decode($flow["name"]), "state" => $flow["state_type"], "checked" => false, "attributes" => array("root" => $flow["root_type"], "active" => $flow["active"], "services_group_id" => $flow["services_group_id"], "service" => html_entity_decode($flow["service"]), "description" => html_entity_decode($flow["description"]), "last_node" => $flow["last_node"]));
    }
    $app->response()->header("Content-Type", "application/json");
    $app->response()->body(json_encode($flows));
});
/**
 *  * 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;
        }
        $counts = $resTotalRowCount[0]['count'];
    }
    $app->response()->header("Content-Type", "application/json");
    $resultArray = array();
    $resultArray['total'] = $counts;
    $resultArray['rows'] = $flows;
    $app->response()->body(json_encode($resultArray));
});
/**
 *  * 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;
        }
        $counts = $resTotalRowCount[0]['count'];
    }
    $app->response()->header("Content-Type", "application/json");
    $resultArray = array();
    $resultArray['total'] = $counts;
    $resultArray['rows'] = $flows;
    $app->response()->body(json_encode($resultArray));
});
/**
*  * 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;
        }
        $counts = $resTotalRowCount[0]['count'];
    }
    $app->response()->header("Content-Type", "application/json");
    $resultArray = array();
    $resultArray['total'] = $counts;
    $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']));
    }
Esempio n. 11
0
    $resCombobox = $BLL->fillResourcesDdList(array());
    $flows = array();
    $flows[] = array("text" => "Lütfen Seçiniz", "value" => 0, "selected" => true, "imageSrc" => "", "description" => "Lütfen Seçiniz");
    foreach ($resCombobox as $flow) {
        $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'])) {
    //if ($stripper->offsetExists('menu_name_eng')) {
    //$vMenuNameEng = $stripper->offsetGet('menu_name_eng')->getFilterValue();
    $vMenuNameEng = $_GET['menu_name_eng'];
    //}
    $resData = $BLL->update(array('id' => $vId, 'role_id' => $vRoleId, 'menu_types_id' => $vMenuTypesId, 'language_code' => $vLanguageCode, 'icon_class' => $vIconClass, 'url' => $vUrl, 'menu_name' => $vMenuName, 'menu_name_eng' => $vMenuNameEng, 'pk' => $Pk));
    $app->response()->header("Content-Type", "application/json");
    $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']));
    }
        }
        $counts = $resTotalRowCount[0]['count'];
    }
    $app->response()->header("Content-Type", "application/json");
    $resultArray = array();
    $resultArray['total'] = $counts;
    $resultArray['rows'] = $flows;
    $app->response()->body(json_encode($resultArray));
});
/**
*  * 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;
    }
    $stripper->strip();
    if ($stripper->offsetExists('id')) {
        $vId = $stripper->offsetGet('id')->getFilterValue();
    }
    $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));
    $resCombobox = $BLL->fillServicesGroupsDdList();
    $flows = array();
    $flows[] = array("text" => "Lütfen Seçiniz", "value" => 0, "selected" => true, "imageSrc" => "", "description" => "Lütfen Seçiniz");
    foreach ($resCombobox as $flow) {
        $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 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;
        $vId = $stripper->offsetGet('id')->getFilterValue();
    }
    if ($stripper->offsetExists('operation_type_id')) {
        $vOperationTypeId = $stripper->offsetGet('operation_type_id')->getFilterValue();
    }
    $resDataDeleted = $BLL->DeletedAct(array('id' => $vId, 'operation_type_id' => $vOperationTypeId, 'pk' => $Pk));
    $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']));
    }
Esempio n. 17
0
    $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));
});
/**
*  * 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 = '';