getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setProject($xmlObject) { $project = new Project(); $project->loadObject($xmlObject); array_push($this->projects, $project); } function getProjects() { return $this->projects; } } class Project { var $Name; var $ProjectUrl; var $Description; var $StartDate; var $EndDate; var $ProjectType; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setName($xmlObject) { $this->Name=$xmlObject->getContent(); } function setProjectUrl($xmlObject) { $this->ProjectUrl=$xmlObject->getContent(); } function setDescription($xmlObject) { $this->Description=$xmlObject->getContent(); } function setStartDate($xmlObject) { $this->StartDate=$xmlObject->getContent(); } function setEndDate($xmlObject) { $this->EndDate=$xmlObject->getContent(); } function setProjectType($xmlObject) { $this->ProjectType=$xmlObject->getContent(); } function getName() { return $this->Name; } function getProjectUrl() { return $this->ProjectUrl; } function getDescription() { return $this->Description; } function getStartDate() { return $this->StartDate; } function getEndDate() { return $this->EndDate; } function getProjectType() { return $this->ProjectType; } } class Employment { var $jobs=array(); function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setjob($xmlObject) { $job = new Job(); $job->loadObject($xmlObject); array_push($this->jobs, $job); } function getJobs() { return $this->jobs; } } class Education { var $degrees = array(); var $coursework = array(); function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setDegrees($xmlObject) { $children=$xmlObject->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $degree = new Degree(); $degree->loadObject($xmlObject); array_push($this->degrees, $degree); } } function setCourseWork($xmlObject) { //set coursework objects as an array; } function getDegrees() { return $this->degrees; } function getCourseWork() { return $this->coursework; } } class Degree { var $Program; var $DegreeType; var $Institution; var $Year; var $Specialty; var $Honors=array(); var $Grade; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setProgram($xmlObject) { $this->Program=$xmlObject->getContent(); } function setDegreeType($xmlObject) { $this->DegreeType=$xmlObject->getContent(); } function setInstitution($xmlObject) { $Institution = new Institution(); $Institution->loadObject($xmlObject); $this->Institution=$Institution; } function setYear($xmlObject) { $this->Year=$xmlObject->getContent(); } function setSpecialty($xmlObject) { $this->Specialty=$xmlObject->getContent(); } function setHonors($xmlObject) { $children = $xmlObject->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $honor = new Honor(); $honor->loadObject($xmlObject); array_push($this->Honors,$honor); } } function setGrade($xmlObject) { $this->Grade=$xmlObject->getContent(); } function getProgram() { return $this->Program; } function getDegreeType() { return $this->DegreeType; } function getInstitution() { return $this->Institution; } function getYear() { return $this->Year; } function getSpecialty() { return $this->Specialty; } function getHonors() { return $this->Honors; } function getGrade() { return $this->Grade; } } class Honor { var $Name; var $Description; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setName($xmlObject) { $this->Name=$xmlObject->getContent(); } function setDescription($xmlObject) { $this->Description=$xmlObject->getContent(); } function getName() { return $this->Name; } function getDescription() { return $this->Description; } } class Qualifications { var $qualifications = array(); function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setQualification ($xmlObject) { $string = $xmlObject->getContent(); array_push($this->qualifications, $string); } function getQualifications() { return $this->qualifications; } } class Publications { var $pubs = array(); function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setPublication ($xmlObject) { $publication = new Publication(); $publication->loadObject($xmlObject); array_push($this->pubs, $publication); } function getPublications() { return $this->pubs; } } class Publication { var $authors = array(); var $Title; var $Citation; var $Date; var $Type; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setAuthors($xmlObject) { $children = $xmlObject->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $author = new Author(); $author->loadObject($xmlObject); array_push($this->authors,$author); } } function setTitle ($xmlObject) { $this->Title=$xmlObject->getContent(); } function setCitation ($xmlObject) { $this->Citation=$xmlObject->getContent(); } function setDate ($xmlObject) { $this->Date=$xmlObject->getContent(); } function setType ($xmlObject) { $this->Type=$xmlObject->getContent(); } function getAuthors() { return $this->authors; } function getTitle() { return $this->Title; } function getCitation() { return $this->Citation; } function getDate() { return $this->Date; } function getType() { return $this->Type; } } class Author { var $FirstName; var $LastName; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); //echo "The name is $name"; $this->$name($xmlObject); } } function getFirstName() { return $this->FirstName; } function getLastName() { return $this->LastName; } function setFirstName($xmlObject) { $this->FirstName=$xmlObject->getContent(); } function setMiddleName($xmlObject) { $this->MiddleName=$xmlObject->getContent(); } function setLastName($xmlObject) { $this->LastName=$xmlObject->getContent(); } } class Person { var $FirstName; var $MiddleName; var $LastName; var $ContactInfo; var $Title; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function getFirstName() { return $this->FirstName; } function getLastName() { return $this->LastName; } function getMiddleName() { return $this->MiddleName; } function getContactInfo() { return $this->ContactInfo; } function getTitle() { return $this->Title; } function setFirstName($xmlObject) { $this->FirstName=$xmlObject->getContent(); } function setMiddleName($xmlObject) { $this->MiddleName=$xmlObject->getContent(); } function setLastName($xmlObject) { $this->LastName=$xmlObject->getContent(); } function setContactInfo($xmlObject) { $this->ContactInfo = new ContactInfo(); $this->ContactInfo->loadObject($xmlObject); } function setTitle($xmlObject) { $this->Title=$xmlObject->getContent(); } } class ContactInfo{ var $StreetAddress; var $Apartment; var $City; var $State; var $Country; var $EmailAddress; var $PhoneNumber; var $Url; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function getStreetAddress() { return $this->StreetAddress; } function getApartment() { return $this->Apartment; } function getCity() { return $this->City; } function getState() { return $this->State; } function getZip() { return $this->Zip; } function getCountry() { return $this->Country; } function getEmailAddress() { return $this->EmailAddress; } function getPhoneNumber() { return $this->PhoneNumber; } function getUrl() { return $this->Url; } function setStreetAddress($xmlObject) { $this->StreetAddress=$xmlObject->getContent(); } function setApartment($xmlObject) { $this->Apartment=$xmlObject->getContent(); } function setCity($xmlObject) { $this->City=$xmlObject->getContent(); } function setState($xmlObject) { $this->State=$xmlObject->getContent(); } function setZip($xmlObject) { $this->Zip=$xmlObject->getContent(); } function setCountry($xmlObject) { $this->Country=$xmlObject->getContent(); } function setEmailAddress($xmlObject) { $this->EmailAddress=$xmlObject->getContent(); } function setPhoneNumber($xmlObject) { $this->PhoneNumber=$xmlObject->getContent(); } function setUrl($xmlObject) { $this->Url=$xmlObject->getContent(); } } class Institution { var $Name; var $Location; var $Department; var $InstitutionUrl; var $DepartmentUrl; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setName($xmlObject) { $this->Name=$xmlObject->getContent(); } function setLocation($xmlObject) { $this->Location=$xmlObject->getContent(); } function setDepartment($xmlObject) { $this->Department=$xmlObject->getContent(); } function setInstitutionUrl($xmlObject) { $this->InstitutionUrl=$xmlObject->getContent(); } function setDepartmentUrl($xmlObject) { $this->DepartmentUrl=$xmlObject->getContent(); } function getName() { return $this->Name; } function getLocation() { return $this->Location; } function getDepartment() { return $this->Department; } function getInstitutionUrl() { return $this->InstitutionUrl; } function getDepartmentUrl() { return $this->DepartmentUrl; } } class Job{ var $Title; var $JobType; var $Function; var $Institution; var $Responsibilities=array(); var $TechnicalSkills; var $StartYear; var $EndYear; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setTitle($xmlObject) { $this->Title=$xmlObject->getContent(); } function setJobType($xmlObject) { $this->JobType=$xmlObject->getContent(); } function setFunction($xmlObject) { $this->Function=$xmlObject->getContent(); } function setResponsibilities($xmlObject) { $children=$xmlObject->getChildren(); while (count($children)>0) { $x=array_shift($children); $responsibility=$x->getContent(); array_push($this->Responsibilities,$responsibility); } } function setTechnicalSkills($xmlObject) { $TechnicalSkills= new TechSkills(); $TechnicalSkills->loadObject($xmlObject); $this->TechnicalSkills=$TechnicalSkills; } function setInstitution($xmlObject) { $Institution = new Institution(); $Institution->loadObject($xmlObject); $this->Institution=$Institution; } function setStartYear($xmlObject) { $this->StartYear=$xmlObject->getContent(); } function setEndYear($xmlObject) { $this->EndYear=$xmlObject->getContent(); } function getTitle() { return $this->Title; } function getJobType() { return $this->JobType; } function getFunction() { return $this->Function; } function getInstitution() { return $this->Institution; } function getResponsibilities() { return $this->Responsibilities; } function getTechnicalSkills() { return $this->TechnicalSkills; } function getStartYear() { return $this->StartYear; } function getEndYear() { return $this->EndYear; } } class TechSkills{ var $Platforms=array(); var $Languages=array(); var $Software=array(); function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setPlatforms($xmlObject) { $children=$xmlObject->getChildren(); while (count($children)>0) { $platform = new Platform(); $platform->loadObject(array_shift($children)); array_push($this->Platforms,$platform); } } function setSoftware($xmlObject) { $children=$xmlObject->getChildren(); while (count($children)>0) { $package = new Package(); $package->loadObject(array_shift($children)); array_push($this->Software,$package); } } function setLanguages($xmlObject) { $children=$xmlObject->getChildren(); while (count($children)>0) { $language = new Language(); $language->loadObject(array_shift($children)); array_push($this->Languages,$language); } } function getPlatforms() { return $this->Platforms; } function getLanguages() { return $this->Languages; } function getSoftware() { return $this->Software; } } class Platform{ var $PlatformName; var $Version; var $PercentTime; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setPlatformName($xmlObject) { $this->PlatformName=$xmlObject->getContent(); } function setVersion($xmlObject) { $this->Version=$xmlObject->getContent(); } function setPercentTime($xmlObject) { $this->PercentTime=$xmlObject->getContent(); } function getName() { return $this->PlatformName; } function getVersion() { return $this->Version; } function getPercentTime() { return $this->PercentTime; } } class Package{ var $PackageName; var $Version; var $PercentTime; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setPackageName($xmlObject) { $this->PackageName=$xmlObject->getContent(); } function setVersion($xmlObject) { $this->Version=$xmlObject->getContent(); } function setPercentTime($xmlObject) { $this->PercentTime=$xmlObject->getContent(); } function getName() { return $this->PackageName; } function getVersion() { return $this->Version; } function getPercentTime() { return $this->PercentTime; } } class Language{ var $Name; var $PercentTime; var $Type; function loadObject ($object) { $children=$object->getChildren(); while (count($children)>0) { $xmlObject=array_shift($children); $name='set'; $name.= substr($xmlObject->getName(),7); $this->$name($xmlObject); } } function setName($xmlObject) { $this->Name=$xmlObject->getContent(); } function setVersion($xmlObject) { $this->Version=$xmlObject->getContent(); } function setPercentTime($xmlObject) { $this->PercentTime=$xmlObject->getContent(); } function setType($xmlObject) { $this->Type=$xmlObject->getContent(); } function getName() { return $this->Name; } function getVersion() { return $this->Version; } function getPercentTime() { return $this->PercentTime; } function getType() { return $this->Type; } } class XmlElement { var $name; var $attributes; var $content; var $children; function getName() { return $this->name; } function getAttributes() { return $this->attributes; } function getContent() { return $this->content; } function getChildren() { return $this->children; } }; ?>