MIOLO = MIOLO::getInstance(); $this->MIOLO->conf = new MConfigLoader(); $this->MIOLO->conf->LoadConf(); $this->MIOLO->Init(); $this->MIOLO->Uses('classes/sagu.class', 'basic'); } /** * Function to webservices that returns the informations of person * * @param: $personId (integer): Is code of student * * @return (array) $persons: Return a array of objects with the informations of persons * $person->personid * $person->persondv * $person->personmask * $person->personname * $person->shortName * $person->cityId * $person->cityname * $person->zipcode * $person->location * $person->locationTypeId * $person->locationtype * $person->complement * $person->neighborhood * $person->email * $person->emailalternative * $person->url * $person->number * $person->stateid * $person->statename * $person->countryname * $person->mioloUserName * $person->password * $persons = array( $person ); */ public function wsGetPerson($personId) { $busPerson = new BusinessBasicBusPerson(); $wsPerson = $busPerson->getPerson($personId); if ( (strlen($wsPerson->personId) > 0 ) ) { $person = new stdClass(); $person->personId = $wsPerson->personId; $person->personDv = $wsPerson->personDv; $person->personMask = $wsPerson->personMask; $person->personName = $wsPerson->name; $person->shortName = $wsPerson->shortName; $person->cityId = $wsPerson->cityId; $person->cityName = $wsPerson->cityName; $person->zipCode = $wsPerson->zipCode; $person->location = $wsPerson->location; $person->locationTypeId = $wsPerson->locationTypeId; $person->locationType = $wsPerson->locationType; $person->complement = $wsPerson->complement; $person->neighborhood = $wsPerson->neighborhood; $person->email = $wsPerson->email; $person->emailAlternative = $wsPerson->emailAlternative; $person->url = $wsPerson->url; $person->number = $wsPerson->number; $person->stateId = $wsPerson->stateId; $person->stateName = $wsPerson->stateName; $person->countryName = $wsPerson->countryName; $person->mioloUserName = $wsPerson->mioloUserName; $dataLogin = $busPerson->getLoginAndPassword($wsPerson->personId); $person->password = $dataLogin->password; } return $person; } } ?>