MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
teste.php
Ir para a documentação deste ficheiro.
1<?php
39{
40 private $MIOLO;
41
42 public function __construct()
43 {
44 chdir('../');
45
46 $_SERVER['REQUEST_URI'] = 'module=basic';
47
48 require_once 'classes/miolo.class';
49 require_once 'classes/support.inc';
50
51 $this->MIOLO = MIOLO::getInstance();
52
53 $this->MIOLO->conf = new MConfigLoader();
54 $this->MIOLO->conf->LoadConf();
55
56 $this->MIOLO->Init();
57 $this->MIOLO->Uses('classes/sagu.class', 'basic');
58 }
59
90 public function wsGetPerson($personId)
91 {
92 $busPerson = new BusinessBasicBusPerson();
93 $wsPerson = $busPerson->getPerson($personId);
94
95 if ( (strlen($wsPerson->personId) > 0 ) )
96 {
97 $person = new stdClass();
98 $person->personId = $wsPerson->personId;
99 $person->personDv = $wsPerson->personDv;
100 $person->personMask = $wsPerson->personMask;
101 $person->personName = $wsPerson->name;
102 $person->shortName = $wsPerson->shortName;
103 $person->cityId = $wsPerson->cityId;
104 $person->cityName = $wsPerson->cityName;
105 $person->zipCode = $wsPerson->zipCode;
106 $person->location = $wsPerson->location;
107 $person->locationTypeId = $wsPerson->locationTypeId;
108 $person->locationType = $wsPerson->locationType;
109 $person->complement = $wsPerson->complement;
110 $person->neighborhood = $wsPerson->neighborhood;
111 $person->email = $wsPerson->email;
112 $person->emailAlternative = $wsPerson->emailAlternative;
113 $person->url = $wsPerson->url;
114 $person->number = $wsPerson->number;
115 $person->stateId = $wsPerson->stateId;
116 $person->stateName = $wsPerson->stateName;
117 $person->countryName = $wsPerson->countryName;
118 $person->mioloUserName = $wsPerson->mioloUserName;
119 $dataLogin = $busPerson->getLoginAndPassword($wsPerson->personId);
120 $person->password = $dataLogin->password;
121 }
122
123 return $person;
124 }
125
126
127}
128?>
Init( $home=NULL, $logname='miolo')
Definição miolo.class:323
static getInstance()
Definição miolo.class:134
wsGetPerson($personId)
Definição teste.php:90