Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. public static function Colluns($database,$tables)
  2. {
  3. #'id_pessoa' => 'type' => ['alias' => 'ID','typedata' => 'text'],
  4. switch ($database)
  5. {
  6. case 'BIGDATA':
  7.  
  8. switch ($tables)
  9. {
  10. case '_rm':
  11. return [
  12. 'nome'=> 'type' => ['alias'=> 'NOME ','typedata' => 'text'],
  13. 'cpf' => 'type' => ['alias' => 'CPF','typedata' => 'cpf'],
  14. 'logradouro'=>'type' => ['alias' => 'LOGRADOURO','typedata' => 'text'],
  15. 'endereco'=>'type' => ['alias' => 'ENDERECO','typedata' => 'text'],
  16. 'numero'=>'type' => ['alias' => 'NUMERO','typedata' => 'text'],
  17. 'complemento'=>'type' => ['alias' => 'COMPLEMENTO','typedata' => 'text'] ,
  18. 'bairro'=>'type' => ['alias' => 'BAIRRO','typedata' => 'text'],
  19. 'cidade'=>'type' => ['alias' => 'CIDADE','typedata' => 'text'] ,
  20. 'uf'=>'type' => ['alias' => 'UF','typedata' => 'text'],
  21. 'cep'=>'type' => ['alias' => 'CEP','typedata' => 'cep'] ,
  22. 'e_mail'=>'type' => ['alias' => 'EMAIL','typedata' => 'email'],
  23. 'local'=>'type' => ['alias' => 'LOCAL','typedata' => 'text'],
  24. 'cidade_local'=>'type' => ['alias' => 'CIDADE_LOCAL','typedata' => 'text'],
  25. 'professor'=>'type' => ['alias' => 'PROFESSOR','typedata' => 'text'],
  26. 'cargo'=>'type' => ['alias' => 'CARGO','typedata' => 'text'] ,
  27. 'tel_comercial'=>'type' => ['alias' => 'TELEFONE','typedata' => 'telefone'],
  28. 'tel_celular'=>'type' => ['alias' => 'CELULAR','typedata' => 'telefone']
  29. ];
  30. break;
  31. ......code ......
  32. }
  33. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement