コード例 #1
0
         $array[] = array('id' => '0', 'value' => 'Selecione o documento');
     }
     foreach ($list as $key => $value) {
         $array[] = array('id' => $value['ID'], 'value' => $value['DIGITAL']);
     }
     break;
 case 'documentos-origens':
     switch ($_REQUEST['type']) {
         case 'IN':
             $array = AutoComplete::filterUnidadesInternasFullText($_REQUEST['query'], true);
             break;
         case 'PR':
             $array = AutoComplete::filterUnidadesGenericasFullText($_REQUEST['query'], $_REQUEST['type'], true);
             break;
         case 'PF':
             $array = AutoComplete::filterPessoaFisicaFullText($_REQUEST['query'], true);
             break;
         case 'PJ':
             $array = AutoComplete::filterPessoaJuridicaFullText($_REQUEST['query'], true);
             break;
         case 'OF':
             $array = AutoComplete::filterUnidadesGenericasFullText($_REQUEST['query'], $_REQUEST['type'], true);
             break;
     }
     break;
 case 'processos-interessados':
     $array = AutoComplete::filterInteressadosProcessosFullText($_REQUEST['query']);
     break;
 case 'processos-origens':
     switch ($_REQUEST['type']) {
         case 'IN':