本文整理汇总了PHP中Person::getLastName方法的典型用法代码示例。如果您正苦于以下问题:PHP Person::getLastName方法的具体用法?PHP Person::getLastName怎么用?PHP Person::getLastName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::getLastName方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSettersAndGetters
public function testSettersAndGetters()
{
$max = new Person('Max', 'Mustermann', Person::GENDER_MALE);
$max->setFirstName('Maxi');
$this->assertEquals('Maxi', $max->getFirstName());
$max->setLastName('Mustermännchen');
$this->assertEquals('Mustermännchen', $max->getLastName());
$max->setGender(Person::GENDER_FEMALE);
$this->assertEquals(Person::GENDER_FEMALE, $max->getGender());
}
示例2: Main
function Main()
{
switch ($this->formArray["ownerType"]) {
case "Person":
$this->tpl->set_block("rptsTemplate", "CompanyDetails", "CompanyDetailsBlock");
$this->tpl->set_var("CompanyDetailsBlock", "");
$person = new Person();
$person->selectRecord($this->formArray["id"]);
$this->tpl->set_var("id", $person->getPersonID());
$this->tpl->set_var("lastName", $person->getLastName());
$this->tpl->set_var("firstName", $person->getFirstName());
$this->tpl->set_var("middleName", $person->getMiddleName());
$this->tpl->set_var("gender", $person->getGender());
$this->tpl->set_var("birthday", $person->getBirthday());
$this->tpl->set_var("maritalStatus", $person->getMaritalStatus());
$this->tpl->set_var("tin", $person->getTin());
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->tpl->set_var("fullAddress", $address->getFullAddress());
}
$this->tpl->set_var("telephone", $person->getTelephone());
$this->tpl->set_var("mobileNumber", $person->getMobileNumber());
$this->tpl->set_var("email", $person->getEmail());
break;
case "Company":
$this->tpl->set_block("rptsTemplate", "PersonDetails", "PersonDetailsBlock");
$this->tpl->set_var("PersonDetailsBlock", "");
$company = new Company();
$company->selectRecord($this->formArray["id"]);
$this->tpl->set_var("id", $company->getCompanyID());
$this->tpl->set_var("companyName", $company->getCompanyName());
$this->tpl->set_var("tin", $company->getTin());
$this->tpl->set_var("telephone", $company->getTelephone());
$this->tpl->set_var("fax", $company->getFax());
$address = $company->addressArray[0];
if (is_a($address, Address)) {
$this->tpl->set_var("fullAddress", $address->getFullAddress());
}
$this->tpl->set_var("email", $company->getEmail());
$this->tpl->set_var("website", $company->getWebsite());
break;
default:
exit("No Person/Company selected. <a href='OwnerList.php" . $this->sess->url("") . "'>Click here</a> to go back to the Owner List.");
break;
}
$this->tpl->set_var("ownerType", $this->formArray["ownerType"]);
$this->tpl->set_var("uname", $this->user["uname"]);
$this->tpl->set_var("today", date("F j, Y"));
$this->setPageDetailPerms();
$this->tpl->set_var("Session", $this->sess->url(""));
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}
示例3: greetPersonText
public final function greetPersonText(Person $person_in)
{
$fname = $person_in->getFirstName();
$lname = $person_in->getLastName();
$processedFirstName = $this->processFirstName($fname);
$processedLastName = $this->processLastName($lname);
if (NULL == $processedFirstName) {
$processed_info = $processedLastName;
} else {
$processed_info = $processedFirstName . $processedLastName;
}
return $processed_info;
}
示例4: getPersonName
function getPersonName($personID)
{
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($personID))) {
// error xmlStr
return "xmlStr";
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
return "domDoc";
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
$personName = $person->getFirstName();
if ($person->getMiddleName() != "") {
$personName .= " " . substr($person->getMiddleName(), 0, 1) . ".";
}
$personName .= " " . $person->getLastName();
//$personName = $person->getFullName();
return $personName;
}
}
}
示例5: register
public function register($postArr)
{
$status = false;
$firstName = $postArr['firstname'];
$lastName = $postArr['lastname'];
if ($postArr['institution'] && !trim(strpos($postArr['institution'], ' ')) && preg_match('/[a-z]+[A-Z]+[a-z]+[A-Z]+/', $postArr['institution'])) {
if ($postArr['title'] && !trim(strpos($postArr['title'], ' ')) && preg_match('/[a-z]+[A-Z]+[a-z]+[A-Z]+/', $postArr['title'])) {
return false;
}
}
$person = new Person();
$person->setPassword($postArr['pwd']);
$person->setUserName($this->userName);
$person->setFirstName($firstName);
$person->setLastName($lastName);
$person->setTitle($postArr['title']);
$person->setInstitution($postArr['institution']);
$person->setCity($postArr['city']);
$person->setState($postArr['state']);
$person->setZip($postArr['zip']);
$person->setCountry($postArr['country']);
$person->setEmail($postArr['emailaddr']);
$person->setUrl($postArr['url']);
$person->setBiography($postArr['biography']);
$person->setIsPublic(isset($postArr['ispublic']) ? 1 : 0);
//Add to users table
$fields = 'INSERT INTO users (';
$values = 'VALUES (';
$fields .= 'firstname ';
$values .= '"' . $this->cleanInStr($person->getFirstName()) . '"';
$fields .= ', lastname';
$values .= ', "' . $this->cleanInStr($person->getLastName()) . '"';
if ($person->getTitle()) {
$fields .= ', title';
$values .= ', "' . $this->cleanInStr($person->getTitle()) . '"';
}
if ($person->getInstitution()) {
$fields .= ', institution';
$values .= ', "' . $this->cleanInStr($person->getInstitution()) . '"';
}
if ($person->getDepartment()) {
$fields .= ', department';
$values .= ', "' . $this->cleanInStr($person->getDepartment()) . '"';
}
if ($person->getAddress()) {
$fields .= ', address';
$values .= ', "' . $this->cleanInStr($person->getAddress()) . '"';
}
if ($person->getCity()) {
$fields .= ', city';
$values .= ', "' . $this->cleanInStr($person->getCity()) . '"';
}
$fields .= ', state';
$values .= ', "' . $this->cleanInStr($person->getState()) . '"';
$fields .= ', country';
$values .= ', "' . $this->cleanInStr($person->getCountry()) . '"';
if ($person->getZip()) {
$fields .= ', zip';
$values .= ', "' . $this->cleanInStr($person->getZip()) . '"';
}
if ($person->getPhone()) {
$fields .= ', phone';
$values .= ', "' . $this->cleanInStr($person->getPhone()) . '"';
}
if ($person->getEmail()) {
$fields .= ', email';
$values .= ', "' . $this->cleanInStr($person->getEmail()) . '"';
}
if ($person->getUrl()) {
$fields .= ', url';
$values .= ', "' . $person->getUrl() . '"';
}
if ($person->getBiography()) {
$fields .= ', biography';
$values .= ', "' . $this->cleanInStr($person->getBiography()) . '"';
}
if ($person->getIsPublic()) {
$fields .= ', ispublic';
$values .= ', ' . $person->getIsPublic();
}
$sql = $fields . ') ' . $values . ')';
//echo "SQL: ".$sql;
$editCon = $this->getConnection('write');
if ($editCon->query($sql)) {
$person->setUid($editCon->insert_id);
$this->uid = $person->getUid();
//Add userlogin
$sql = 'INSERT INTO userlogin (uid, username, password) ' . 'VALUES (' . $person->getUid() . ', "' . $this->cleanInStr($person->getUserName()) . '", PASSWORD("' . $this->cleanInStr($person->getPassword()) . '"))';
if ($editCon->query($sql)) {
$status = true;
//authenicate
$this->userName = $person->getUserName();
$this->displayName = $person->getFirstName();
$this->reset();
$this->setCookies();
} else {
$this->errorStr = 'FAILED: Unable to create user.<div style="margin-left:55px;">Please contact system administrator for assistance.</div>';
}
}
$editCon->close();
//.........这里部分代码省略.........
示例6: testSetAndGetLastName
public function testSetAndGetLastName()
{
$this->person->setLastName('Meier');
$this->assertEquals('Meier', $this->person->getLastName());
}
示例7: signIn
/**
* Signs the user in
* @param Person $person
* @param sfWebRequest $request
*/
private function signIn(Person $person, sfWebRequest $request)
{
$cur_user = $this->getUser();
$cur_user->setAttribute('id', $person->getId(), 'person');
$cur_user->setAttribute('username', $person->getUsername(), 'person');
$cur_user->setAttribute('firstname', $person->getFirstName(), 'person');
$cur_user->setAttribute('lastname', $person->getLastName(), 'person');
# set member and pilot ids
$members = $person->getMembers();
if (isset($members[0])) {
$cur_user->setAttribute('member_id', $members[0]->getId(), 'person');
$pilot = $members[0]->getPilot();
if ($pilot) {
$cur_user->setAttribute('pilot_id', $pilot->getId(), 'person');
}
}
/* Custom Code - Ziyed and Aftab */
$cur_user_roles = array();
$query = "select role_id from afids.person_role where person_role.person_id ='" . $person->getId() . "'";
$conn = Propel::getConnection();
$statement = $conn->prepare($query);
$statement->execute();
while ($row = $statement->fetch()) {
$cur_user_roles[] = $row['role_id'];
}
///////Ziyed do credential//////
$warnings = array();
if (array_intersect($cur_user_roles, array(1, 2, 26))) {
$cur_user->addCredential('Administrator');
} elseif (array_intersect($cur_user_roles, array(3, 4, 28))) {
$cur_user->addCredential('Staff');
} elseif (array_intersect($cur_user_roles, array(7, 24, 25, 29))) {
$cur_user->addCredential('Coordinator');
} else {
if (array_intersect($cur_user_roles, array(31, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))) {
if (isset($members[0]) && $members[0] instanceof Member) {
$cur_user->addCredential('Member');
} else {
$warnings[] = 'You are a member but you don\'t have proper database record';
}
} elseif (array_intersect($cur_user_roles, array(30))) {
$cur_user->addCredential('Volunteer');
} elseif (array_intersect($cur_user_roles, array(5, 6, 27))) {
if (isset($pilot) && $pilot instanceof Pilot) {
$cur_user->addCredential('Pilot');
} else {
$warnings[] = 'You are a pilot but you don\'t have proper database record';
}
} else {
$warnings[] = 'you don\'t have proper database record';
if (count($warnings)) {
$this->getUser()->setFlash('warning', implode(". ", $warnings));
}
$this->redirect('/');
}
}
//////Ziyed end
$cur_user->setAuthenticated(true);
/* End of Custom Code - Ziyed and Aftab */
# add credentials
/*
$warnings = array();
$person_roles = $person->getPersonRolesJoinRole();
foreach ($person_roles as $person_role) {
$credential = $person_role->getRole()->getTitle();
//if ($credential == '@Pilot'){
if ($credential == 'Pilot'){
// @Pilot role can be assigned only if current user has Pilot record set
if (isset($pilot) && ($pilot instanceof Pilot)) {
$cur_user->addCredential($credential);
}else{
$warnings[] = 'You are a pilot but you don\'t have proper database record';
}
}elseif ($credential == 'Member'){
// @Member role can be assigned only if current user has Member record set
if (isset($members[0]) && ($members[0] instanceof Member)) {
$cur_user->addCredential($credential);
}else{
$warnings[] = 'You are a member but you don\'t have proper database record';
}
}else{
$cur_user->addCredential($credential);
}
}*/
if (count($warnings)) {
$this->getUser()->setFlash('warning', implode(". ", $warnings));
}
}
示例8: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $person->getBirthday());
$this->formArray["personID"] = $person->getPersonID();
$this->formArray["lastName"] = $person->getLastName();
$this->formArray["firstName"] = $person->getFirstName();
$this->formArray["middleName"] = $person->getMiddleName();
$this->formArray["gender"] = $person->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $person->getMaritalStatus();
$this->formArray["tin"] = $person->getTin();
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->formArray["addressID"] = $address->getAddressID();
$this->formArray["number"] = $address->getNumber();
$this->formArray["street"] = $address->getStreet();
$this->formArray["barangay"] = $address->getBarangay();
$this->formArray["district"] = $address->getDistrict();
$this->formArray["municipalityCity"] = $address->getMunicipalitycity();
$this->formArray["province"] = $address->getProvince();
}
$this->formArray["telephone"] = $person->getTelephone();
$this->formArray["mobileNumber"] = $person->getMobileNumber();
$this->formArray["email"] = $person->getEmail();
}
}
break;
case "save":
$PersonEncode = new SoapObject(NCCBIZ . "PersonEncode.php", "urn:Object");
if ($this->formArray["personID"] != "") {
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$address->setAddressID($this->formArray["addressID"]);
$address->setNumber($this->formArray["number"]);
$address->setStreet($this->formArray["street"]);
$address->setBarangay($this->formArray["barangay"]);
$address->setDistrict($this->formArray["district"]);
$address->setMunicipalityCity($this->formArray["municipalityCity"]);
$address->setProvince($this->formArray["province"]);
$address->setDomDocument();
}
$person->setPersonID($this->formArray["personID"]);
$person->setLastName($this->formArray["lastName"]);
$person->setFirstName($this->formArray["firstName"]);
$person->setMiddleName($this->formArray["middleName"]);
$person->setGender($this->formArray["gender"]);
$person->setBirthday($this->birthdate);
$person->setMaritalStatus($this->formArray["maritalStatus"]);
$person->setTin($this->formArray["tin"]);
$person->setAddressArray($address);
$person->setTelephone($this->formArray["telephone"]);
$person->setMobileNumber($this->formArray["mobileNumber"]);
$person->setEmail($this->formArray["email"]);
$person->setDomDocument();
$doc = $person->getDomDocument();
$xmlStr = $doc->dump_mem(true);
if (!($ret = $PersonEncode->updatePerson($xmlStr))) {
exit("error update");
}
}
}
} else {
$address = new Address();
$address->setNumber($this->formArray["number"]);
$address->setStreet($this->formArray["street"]);
$address->setBarangay($this->formArray["barangay"]);
$address->setDistrict($this->formArray["district"]);
$address->setMunicipalityCity($this->formArray["municipalityCity"]);
$address->setProvince($this->formArray["province"]);
$address->setDomDocument();
$person = new Person();
$person->setPersonID($this->formArray["personID"]);
$person->setLastName($this->formArray["lastName"]);
$person->setFirstName($this->formArray["firstName"]);
//.........这里部分代码省略.........
示例9: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "edit":
$UserDetails = new SoapObject(NCCBIZ . "UserDetails.php", "urn:Object");
if (!($xmlStr = $UserDetails->getUserDetails($this->formArray["userID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "User record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$user = new User();
$user->parseDomDocument($domDoc);
$this->formArray["userID"] = $user->getUserID();
$this->formArray["userType"] = $user->getUserType();
$this->formArray["username"] = $user->getUsername();
$this->formArray["password"] = $user->getPassword();
$this->formArray["personID"] = $user->getPersonID();
$this->formArray["status"] = $user->getStatus();
}
}
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "Person record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
list($dateArr["year"], $dateArr["month"], $dateArr["day"]) = explode("-", $person->getBirthday());
$this->formArray["personID"] = $person->getPersonID();
$this->formArray["lastName"] = $person->getLastName();
$this->formArray["firstName"] = $person->getFirstName();
$this->formArray["middleName"] = $person->getMiddleName();
$this->formArray["gender"] = $person->getGender();
$this->formArray["birth_year"] = removePreZero($dateArr["year"]);
$this->formArray["birth_month"] = removePreZero($dateArr["month"]);
$this->formArray["birth_day"] = removePreZero($dateArr["day"]);
$this->formArray["maritalStatus"] = $person->getMaritalStatus();
$this->formArray["tin"] = $person->getTin();
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->formArray["addressID"] = $address->getAddressID();
$this->formArray["number"] = $address->getNumber();
$this->formArray["street"] = $address->getStreet();
$this->formArray["barangay"] = $address->getBarangay();
$this->formArray["district"] = $address->getDistrict();
$this->formArray["municipalityCity"] = $address->getMunicipalitycity();
$this->formArray["province"] = $address->getProvince();
}
$this->formArray["telephone"] = $person->getTelephone();
$this->formArray["mobileNumber"] = $person->getMobileNumber();
$this->formArray["email"] = $person->getEmail();
}
}
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
$this->tpl->set_var("oldNewUserRowspan", 5);
//$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
break;
case "save":
/*
if($this->isOldPasswordCorrect()==false){
$this->message = "Error. Cannot Save. Old password incorrect to create new password.";
$this->tpl->set_var("message", $this->message);
$this->tpl->parse("MessageBlock", "Message", true);
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
break;
}
*/
if ($this->formArray["newPassword"] != "" && $this->formArray["newPassword"] != "null") {
$this->formArray["password"] = md5($this->formArray["newPassword"]);
}
if ($this->usernameAlreadyExists() == true) {
$this->message = "Error. Cannot Save. Username already exists.";
$this->tpl->set_var("message", $this->message);
$this->tpl->parse("MessageBlock", "Message", true);
$this->tpl->set_block("rptsTemplate", "NewUserPassword", "NewUserPasswordBlock");
$this->tpl->set_block("rptsTemplate", "OldUserPassword", "OldUserPasswordBlock");
if ($this->formArray["personID"] != "") {
$this->tpl->set_var("NewUserPasswordBlock", "");
$this->tpl->set_var("oldNewUserRowspan", 3);
$this->tpl->parse("OldUserPasswordBlock", "OldUserPassword", true);
} else {
$this->tpl->set_var("oldNewUserRowspan", 2);
$this->tpl->parse("NewUserPasswordBlock", "NewUserPassword", true);
$this->tpl->set_var("OldUserPasswordBlock", "");
//.........这里部分代码省略.........
示例10: last_name
public function last_name()
{
if ($this->exists("LOGIN-last_name")) {
return $this->getVariable("LOGIN-last_name");
} else {
$id = parent::getLastName();
$this->addVariable("LOGIN-last_name", $id);
return $id;
}
}
示例11: updatePerson
/**
* Updates a person in the database, Image Link will not be updated, even
* if passed. ID must be valid.
*
* @param Person $person
* @return type
*/
public function updatePerson(Person $person)
{
$this->connect();
$id = $person->getId();
$fname = "'" . $person->getFirstName() . "'";
$lname = "'" . $person->getLastName() . "'";
$birthdate = "'" . $person->getBirthdate() . "'";
$bio = "'" . mysqli_real_escape_string($this->link, $person->getBio()) . "'";
$sql = "UPDATE people " . "SET fname = {$fname}, " . "lname = {$lname}, " . "birthdate = {$birthdate}, " . "submit_date = CURDATE(), " . "bio = {$bio} " . "WHERE id = {$id}";
return mysqli_query($this->link, $sql);
}
示例12: Main
function Main($referer = "")
{
//if (trim($referer) == "" || !isset($referer))
$referer = "OwnerList.php";
$this->tpl->set_var("referer", $referer);
switch ($this->formArray["formAction"]) {
case "save" || "view" || "viewOnly":
$this->tpl->set_var("referer", $referer);
$PersonDetails = new SoapObject(NCCBIZ . "PersonDetails.php", "urn:Object");
if (!($xmlStr = $PersonDetails->getPersonDetails($this->formArray["personID"]))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "record not found");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
$this->tpl->set_var("TableBlock", "error xmlDoc");
} else {
$person = new Person();
$person->parseDomDocument($domDoc);
$this->formArray["personID"] = $person->getPersonID();
$this->formArray["personName"] = $person->getFullName();
$this->formArray["lastName"] = $person->getLastName();
$this->formArray["firstName"] = $person->getFirstName();
$this->formArray["middleName"] = $person->getMiddleName();
$this->formArray["gender"] = $person->getGender();
$this->formArray["birthday"] = $person->getBirthday();
$this->formArray["maritalStatus"] = $person->getMaritalStatus();
$this->formArray["tin"] = $person->getTin();
$address = $person->addressArray[0];
if (is_a($address, Address)) {
$this->formArray["number"] = $address->getNumber();
$this->formArray["street"] = $address->getStreet();
$this->formArray["barangay"] = $address->getBarangay();
$this->formArray["district"] = $address->getDistrict();
$this->formArray["municipalityCity"] = $address->getMunicipalitycity();
$this->formArray["province"] = $address->getProvince();
}
$this->formArray["telephone"] = $person->getTelephone();
$this->formArray["mobileNumber"] = $person->getMobileNumber();
$this->formArray["email"] = $person->getEmail();
}
}
if ($this->formArray["formAction"] == "viewOnly") {
$this->tpl->set_block("rptsTemplate", "ViewOnly", "ViewOnlyBlock");
$this->tpl->set_var("ViewOnlyBlock", "");
}
break;
case "cancel":
//header("location: PersonList.php");
exit;
break;
default:
$this->tpl->set_block("rptsTemplate", "ACK", "ACKBlock");
$this->tpl->set_var("ACKBlock", "");
}
//*/
$this->tpl->set_var("Session", $this->sess->url(""));
$this->setForm();
$this->tpl->parse("templatePage", "rptsTemplate");
$this->tpl->finish("templatePage");
$this->tpl->p("templatePage");
}