本文整理汇总了PHP中Person::getFullName方法的典型用法代码示例。如果您正苦于以下问题:PHP Person::getFullName方法的具体用法?PHP Person::getFullName怎么用?PHP Person::getFullName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::getFullName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testPlayingWithManyAssertions
public function testPlayingWithManyAssertions()
{
/*
* Typically, an assertion will look like this:
*
* $this->assert<Something>($expected, $actual, $message);
* $expected: What the value *should* be.
* $actual: What the value *actually* is.
* $message: Text to display if the assertion fails.
*/
$this->assertEquals(4, 2 + 2, 'Uh oh! Someone forgot how to add.');
/*
* The $message is optional. If excluded, a sane default is used.
* In this case: "Failed asserting that an array contains $needle."
*/
$this->assertContains(2, [1, 2, 3]);
// For most "assert<Something>", there's also an "assertNot<Something>"
$this->assertNotContains(4, [1, 2, 3]);
/*
* You can test "Equality" or "Identity" ("==" vs. "===")
*
* So, integer 123 is equal to string '123', but they're not *the same*.
*/
$this->assertSame(123, 123);
$this->assertNotSame(123, '123');
// Sometimes, you don't need the $expected either.
$this->assertTrue(true);
$this->assertEmpty(null);
$this->assertFileExists(__FILE__);
/*
* Using variables in your assertions can help make your tests less brittle.
*
* If you need to change your test data, you need only do it in one place,
* rather than looking through your test to change it everywhere.
*/
$person = new Person('Michael', 'Moussa');
$this->assertSame('Michael Moussa', $person->getFullName());
// vs
$firstName = 'Michael';
$lastName = 'Moussa';
$person = new Person($firstName, $lastName);
$this->assertSame($firstName . ' ' . $lastName, $person->getFullName());
/*
* You can "get away" with only ever using a single assertion (assertTrue), but using
* all of them makes your tests more expressive, easier to read, and easier to debug.
*/
$string = 'foobar';
$suffix = 'bar';
$this->assertTrue(substr($string, 0 - strlen($suffix)) === $suffix);
// vs
$this->assertStringEndsWith($suffix, $string);
/*
* There are MANY more assertions. Check them out!
* http://phpunit.de/manual/current/en/appendixes.assertions.html
*/
}
示例2: setPersonList
function setPersonList()
{
$db = new DB_RPTS();
$db1 = new DB_RPTS();
$db->query("SELECT DISTINCT personID from OwnerPerson inner join Owner on Owner.ownerID=OwnerPerson.ownerID where Owner.rptopID <> ''");
$this->tpl->set_block("rptsTemplate", "Owner", "oBlk");
for ($i = 0; $db->next_record(); $i++) {
$personID = $db->f("personID");
$person = new Person();
if ($person->selectRecord($personID)) {
//$setPersonArray($person);
$this->tpl->set_var(ownerName, $person->getFullName());
$this->tpl->set_var(ownerID, $personID);
}
$this->tpl->parse("oBlk", "Owner", true);
}
}
示例3: getIndiBDIcalEvent
/**
* Returns a birthday iCalendar event.
* If there is no date for the event, or the person is not alive, no iCalendar event will be returned
* @param Person $indi The Person Object
* @return the birthday iCalendar event.
*/
function getIndiBDIcalEvent($indi)
{
if ($indi->isDead()) {
return;
}
$birthDate = $indi->getBirthDate();
if (!$birthDate->isOK()) {
return;
}
$summary = $indi->getFullName() . "'s Birthday";
$place = $indi->getBirthPlace();
$description = "Born on " . $birthDate->Display(false) . ($place == "" ? "" : "in " . $place) . "\n" . encode_url($indi->getAbsoluteLinkUrl());
$iCalRecord = getIcalRecord($birthDate, $summary, $description, encode_url($indi->getAbsoluteLinkUrl()));
return $iCalRecord;
}
示例4: testFullNameIncludesMiddleInitial
public function testFullNameIncludesMiddleInitial()
{
$person = new Person('Michael', 'Moussa', 'P');
$this->assertSame('Michael P. Moussa', $person->getFullName());
}
示例5: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "remove":
//echo "removeOwnerRPTOP(".$this->formArray["rptopID"].",".$this->formArray["ownerID"].",".$this->formArray["personID"].",".$this->formArray["companyID"].")";
$OwnerList = new SoapObject(NCCBIZ . "OwnerList.php", "urn:Object");
if (count($this->formArray["personID"]) || count($this->formArray["companyID"])) {
if (!($deletedRows = $OwnerList->removeOwnerRPTOP($this->formArray["rptopID"], $this->formArray["ownerID"], $this->formArray["personID"], $this->formArray["companyID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
//echo "SOAP failed";
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
header("location: RPTOPDetails.php" . $this->sess->url("") . $this->sess->add_query(array("rptopID" => $this->formArray["rptopID"])));
exit;
break;
default:
$this->tpl->set_var("msg", "");
}
//select
$RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
if (!($xmlStr = $RPTOPDetails->getRPTOP($this->formArray["rptopID"]))) {
exit("xml failed");
} else {
//echo($xmlStr);
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$rptop = new RPTOP();
$rptop->parseDomDocument($domDoc);
//print_r($rptop);
foreach ($rptop as $key => $value) {
switch ($key) {
case "owner":
//$RPTOPEncode = new SoapObject(NCCBIZ."RPTOPEncode.php", "urn:Object");
if (is_a($value, "Owner")) {
$this->formArray["ownerID"] = $rptop->owner->getOwnerID();
$xmlStr = $rptop->owner->domDocument->dump_mem(true);
if (!$xmlStr) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$this->displayOwnerList($domDoc);
}
}
} else {
$this->tpl->set_block("rptsTemplate", "PersonList", "PersonListBlock");
$this->tpl->set_var("PersonListBlock", "");
$this->tpl->set_block("rptsTemplate", "CompanyList", "CompanyListBlock");
$this->tpl->set_var("CompanyListBlock", "");
}
break;
case "cityAssessor":
if (is_numeric($value)) {
$cityAssessor = new Person();
$cityAssessor->selectRecord($value);
$this->tpl->set_var("cityAssessorID", $cityAssessor->getPersonID());
$this->tpl->set_var("cityAssessorName", $cityAssessor->getFullName());
$this->formArray["cityAssessorName"] = $cityAssessor->getFullName();
} else {
$cityAssessor = $value;
$this->tpl->set_var("cityAssessorID", $cityAssessor);
$this->tpl->set_var("cityAssessorName", $cityAssessor);
$this->formArray["cityAssessorName"] = $cityAssessor;
}
break;
case "cityTreasurer":
if (is_numeric($value)) {
$cityTreasurer = new Person();
$cityTreasurer->selectRecord($value);
$this->tpl->set_var("cityTreasurerID", $cityTreasurer->getPersonID());
$this->tpl->set_var("cityTreasurerName", $cityTreasurer->getFullName());
$this->formArray["cityTreasurerName"] = $cityTreasurer->getFullName();
} else {
$cityTreasurer = $value;
$this->tpl->set_var("cityTreasurerID", $cityTreasurer);
$this->tpl->set_var("cityTreasurerName", $cityTreasurer);
$this->formArray["cityTreasurerName"] = $cityTreasurer;
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
/*
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
//.........这里部分代码省略.........
示例6: Person
<?php
// inheritance.php
require_once "app_autoload.php";
$person = new Person("Zachary", "Cameron Lynch");
echo $person->getFullName() . "<br>";
echo "<hr>";
$employee = new Employee("Donald", "Adam", "Cameron", 17);
echo $employee->getFullName() . "<br>";
echo "<hr>";
示例7: initMasterSignatoryList
function initMasterSignatoryList($TempVar, $tempVar)
{
$this->tpl->set_block("rptsTemplate", $TempVar . "List", $TempVar . "ListBlock");
// commented out: March 16, 2004:
// recommended that approval lists come ONLY out of the Users table and not out of eRPTSSettings
/* Begin of Comment out
$eRPTSSettingsDetails = new SoapObject(NCCBIZ."eRPTSSettingsDetails.php", "urn:Object");
if(!$xmlStr = $eRPTSSettingsDetails->getERPTSSettingsDetails(1)){
// xml failed
}
else{
if(!$domDoc = domxml_open_mem($xmlStr)){
// error domDoc
}
else{
$eRPTSSettings = new eRPTSSettings;
$eRPTSSettings->parseDomDocument($domDoc);
switch($tempVar){
case "recommendingApproval":
case "approvedBy":
// provincialAssessor
if($eRPTSSettings->getProvincialAssessorLastName()!=""){
$this->formArray["recommendingApprovalID"] = $this->formArray["recommendingApproval"];
$this->formArray["approvedByID"] = $this->formArray["approvedBy"];
$this->tpl->set_var("id",$eRPTSSettings->getAssessorFullName());
$this->tpl->set_var("name",$eRPTSSettings->getAssessorFullName());
$this->initSelected($tempVar."ID",$eRPTSSettings->getAssessorFullName());
$this->tpl->parse($TempVar."ListBlock",$TempVar."List",true);
$this->formArray["recommendingApprovalID"] = $this->formArray["recommendingApproval"];
$this->formArray["approvedByID"] = $this->formArray["approvedBy"];
$this->tpl->set_var("id",$eRPTSSettings->getProvincialAssessorFullName());
$this->tpl->set_var("name",$eRPTSSettings->getProvincialAssessorFullName());
$this->formArray[$tempVar."ID"] = $this->formArray[$tempVar];
$this->initSelected($tempVar."ID",$eRPTSSettings->getProvincialAssessorFullName());
$this->tpl->parse($TempVar."ListBlock",$TempVar."List",true);
}
break;
}
}
}
*/
// End of Comment out : March 16, 2004
$UserList = new SoapObject(NCCBIZ . "UserList.php", "urn:Object");
if (!($xmlStr = $UserList->getUserList(0, " WHERE " . AUTH_USER_MD5_TABLE . ".userType REGEXP '1\$' AND " . AUTH_USER_MD5_TABLE . ".status='enabled'"))) {
//$this->tpl->set_var("id", "");
//$this->tpl->set_var("name", "empty list");
//$this->tpl->parse($TempVar."ListBlock", $TempVar."List", true);
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
//$this->tpl->set_var("", "");
//$this->tpl->set_var("name", "empty list");
//$this->tpl->parse($TempVar."ListBlock", $TempVar."List", true);
} else {
$UserRecords = new UserRecords();
$UserRecords->parseDomDocument($domDoc);
$list = $UserRecords->getArrayList();
foreach ($list as $key => $user) {
$person = new Person();
$person->selectRecord($user->personID);
$this->tpl->set_var("id", $user->personID);
$this->tpl->set_var("name", $person->getFullName());
$this->formArray[$tempVar . "ID"] = $this->formArray[$tempVar];
$this->initSelected($tempVar . "ID", $user->personID);
$this->tpl->parse($TempVar . "ListBlock", $TempVar . "List", true);
}
}
}
}
示例8: displayTDDetails
function displayTDDetails()
{
$afsID = $this->formArray["afsID"];
$TDDetails = new SoapObject(NCCBIZ . "TDDetails.php", "urn:Object");
if (!($xmlStr = $TDDetails->getTD("", $afsID, "", ""))) {
// error xml
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
} else {
$td = new TD();
$td->parseDomDocument($domDoc);
$this->formArray["taxDeclarationNumber"] = $td->getTaxDeclarationNumber();
$this->formArray["memoranda"] = $td->getMemoranda();
$this->formArray["cancelsTDNumber"] = $td->getCancelsTDNumber();
//cityMunicipalAssessor
if (is_numeric($td->getCityMunicipalAssessor())) {
$cityMunicipalAssessor = new Person();
$cityMunicipalAssessor->selectRecord($td->cityMunicipalAssessor);
$this->formArray["cityAssessor"] = $cityMunicipalAssessor->getFullName();
} else {
$this->formArray["cityAssessor"] = $td->getCityMunicipalAssessor;
}
$this->formArray["propertyType"] = $td->getPropertyType();
}
}
}
示例9: initMasterSignatoryList
function initMasterSignatoryList($TempVar, $tempVar)
{
$this->tpl->set_block("rptsTemplate", $TempVar . "List", $TempVar . "ListBlock");
$UserList = new SoapObject(NCCBIZ . "UserList.php", "urn:Object");
if (!($xmlStr = $UserList->getUserList(0, " WHERE " . AUTH_USER_MD5_TABLE . ".userType REGEXP '1\$' AND " . AUTH_USER_MD5_TABLE . ".status='enabled'"))) {
// error xmlStr
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
// error domDoc
} else {
$UserRecords = new UserRecords();
$UserRecords->parseDomDocument($domDoc);
$list = $UserRecords->getArrayList();
foreach ($list as $key => $user) {
$person = new Person();
$person->selectRecord($user->personID);
$this->tpl->set_var("id", $user->personID);
$this->tpl->set_var("name", $person->getFullName());
$this->initSelected($tempVar . "ID", $user->personID);
$this->tpl->parse($TempVar . "ListBlock", $TempVar . "List", true);
}
}
}
}
示例10: getFullName
public function getFullName()
{
return parent::getFullname() . implode(',', $this->skills);
}
}
//$this - ссылка на текущщий объект. Работает только в контексте объекта
$person = new Person();
$person->firstname = 'Popkin';
$person->lastname = 'Piska';
echo $person->firstname;
echo $person->lastname;
$person->age = 150;
var_dump($person);
$persond = new Person('Piska', 'Popkin', 'Zhopkin');
$person3 = new Developer('Pi2ska', 'Pop2kin', 'Zhop2kin', ['php', 'javascript']);
echo $persond->getFullName();
echo $person3->getFullName();
var_dump($persond);
var_dump($person3);
class Foo
{
protected static $prop = 'Foo';
public static function get()
{
echo static::$prop;
// Если бы тут был self то наследуемый класс тоже давал бы Foo
}
}
class Bar extends Foo
{
protected static $prop = 'Bar';
示例11: Main
function Main()
{
switch ($this->formArray["formAction"]) {
case "remove":
//echo "removeOwnerRPTOP(".$this->formArray["rptopID"].",".$this->formArray["ownerID"].",".$this->formArray["personID"].",".$this->formArray["companyID"].")";
$OwnerList = new SoapObject(NCCBIZ . "OwnerList.php", "urn:Object");
if (count($this->formArray["personID"]) || count($this->formArray["companyID"])) {
if (!($deletedRows = $OwnerList->removeOwnerRPTOP($this->formArray["rptopID"], $this->formArray["ownerID"], $this->formArray["personID"], $this->formArray["companyID"]))) {
$this->tpl->set_var("msg", "SOAP failed");
//echo "SOAP failed";
} else {
$this->tpl->set_var("msg", $deletedRows . " records deleted");
}
} else {
$this->tpl->set_var("msg", "0 records deleted");
}
header("location: RPTOPDetails.php" . $this->sess->url("") . $this->sess->add_query(array("rptopID" => $this->formArray["rptopID"])));
exit;
break;
default:
$this->tpl->set_var("msg", "");
}
//select
$RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
if (!($xmlStr = $RPTOPDetails->getRPTOP($this->formArray["rptopID"]))) {
exit("xml failed");
} else {
//echo($xmlStr);
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$rptop = new RPTOP();
$rptop->parseDomDocument($domDoc);
//print_r($rptop);
foreach ($rptop as $key => $value) {
switch ($key) {
case "owner":
//$RPTOPEncode = new SoapObject(NCCBIZ."RPTOPEncode.php", "urn:Object");
if (is_a($value, "Owner")) {
$this->formArray["ownerID"] = $rptop->owner->getOwnerID();
$xmlStr = $rptop->owner->domDocument->dump_mem(true);
if (!$xmlStr) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$this->displayOwnerList($domDoc);
}
}
} else {
$this->tpl->set_block("rptsTemplate", "PersonList", "PersonListBlock");
$this->tpl->set_var("PersonListBlock", "");
$this->tpl->set_block("rptsTemplate", "CompanyList", "CompanyListBlock");
$this->tpl->set_var("CompanyListBlock", "");
}
break;
case "cityAssessor":
if (is_numeric($value)) {
$cityAssessor = new Person();
$cityAssessor->selectRecord($value);
$this->tpl->set_var("cityAssessorID", $cityAssessor->getPersonID());
$this->tpl->set_var("cityAssessorName", $cityAssessor->getFullName());
$this->formArray["cityAssessorName"] = $cityAssessor->getFullName();
} else {
$cityAssessor = $value;
$this->tpl->set_var("cityAssessorID", $cityAssessor);
$this->tpl->set_var("cityAssessorName", $cityAssessor);
$this->formArray["cityAssessorName"] = $cityAssessor;
}
break;
case "cityTreasurer":
if (is_numeric($value)) {
$cityTreasurer = new Person();
$cityTreasurer->selectRecord($value);
$this->tpl->set_var("cityTreasurerID", $cityTreasurer->getPersonID());
$this->tpl->set_var("cityTreasurerName", $cityTreasurer->getFullName());
$this->formArray["cityTreasurerName"] = $cityTreasurer->getFullName();
} else {
$cityTreasurer = $value;
$this->tpl->set_var("cityTreasurerID", $cityTreasurer);
$this->tpl->set_var("cityTreasurerName", $cityTreasurer);
$this->formArray["cityTreasurerName"] = $cityTreasurer;
}
break;
case "tdArray":
$this->tpl->set_block("rptsTemplate", "defaultTDList", "defaultTDListBlock");
$this->tpl->set_block("rptsTemplate", "toggleTDList", "toggleTDListBlock");
$this->tpl->set_block("rptsTemplate", "TDList", "TDListBlock");
$tdCtr = 0;
if (count($value)) {
$this->tpl->set_block("rptsTemplate", "TDDBEmpty", "TDDBEmptyBlock");
$this->tpl->set_var("TDDBEmptyBlock", "");
/*
$this->tpl->set_block("TDList", "Land", "LandBlock");
$this->tpl->set_block("TDList", "PlantsTrees", "PlantsTreesBlock");
$this->tpl->set_block("TDList", "ImprovementsBuildings", "ImprovementsBuildingsBlock");
//.........这里部分代码省略.........
示例12: Person
<?php
include 'Person.php';
$andy = new Person('Andy', 'Fischoff');
$andy->email = 'andy@fischoff.com';
$andy->gender = 'male';
$andy->sayHello();
echo "<br><br>";
$bobby = new Person('Bobby', 'Brown');
$bobby->email = 'bobby@brown.com';
$bobby->gender = 'male';
echo $bobby->getFullName() . '<br>';
$bobby->sayHello();
示例13: Main
function Main()
{
$this->formArray['currentDate'] = date("F d, Y");
$MunicipalityCityDetails = new SoapObject(NCCBIZ . "MunicipalityCityDetails.php", "urn:Object");
#test values
//$this->formArray['municipalityCityID']=1;
if (!($xmlStr = $MunicipalityCityDetails->getMunicipalityCityDetails($this->formArray['municipalityCityID']))) {
#echo($xmlStr);
//exit("xml failed for municipality");
header("Location: " . $this->sess->url("ViewSOA.php") . "&status=2");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
echo "error xmlDoc";
} else {
$MunicipalityCity = new MunicipalityCity();
$MunicipalityCity->parseDomDocument($domDoc);
$this->formArray['municipality'] = $MunicipalityCity->getDescription();
}
}
#test values
//$this->formArray['ownerID']=5;
#echo("ownerID=".$this->formArray['ownerID']."<br>");
// $this->displayOwnerList($this->formArray['ownerID']);
#test values
//$this->formArray["rptopID"]=15;
if ($this->formArray['personID'] != "") {
$person = new Person();
$person->selectRecord($this->formArray['personID']);
$this->tpl->set_var(ownerName, $person->getFullName());
$this->tpl->set_var(ownerNo, $person->getTin());
$address = $person->addressArray[0];
$this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
$db = new DB_RPTS();
$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['personID'];
$db->query($sql);
} else {
$company = new Company();
$company->selectRecord($this->formArray['companyID']);
$this->tpl->set_var(ownerName, $company->getCompanyName());
$this->tpl->set_var(ownerNo, $company->getCompanyID());
$address = $company->addressArray[0];
$this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
$db = new DB_RPTS();
$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['companyID'];
$db->query($sql);
}
/*$person = new Person();
$person->selectRecord($this->formArray['personID']);
$this->tpl->set_var(ownerName,$person->getFullName());
$this->tpl->set_var(ownerNo,$person->getTin());
$address = $person->addressArray[0];
$this->tpl->set_var(ownerAddress,$address->getNumber() ." ".$address->getStreet()." ".$address->getBarangay()." ".$address->getDistrict()." ".$address->getMunicipalitycity()." ".$address->getProvince());
$db = new DB_RPTS();
$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=".$this->formArray['personID'];
$db->query($sql);*/
$this->tpl->set_block("rptsTemplate", "ROW", "RowBlk");
for ($i = 0; $db->next_record(); $i++) {
$rptopID = $db->f("rptopID");
$RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
if (!($xmlStr = $RPTOPDetails->getRPTOP($rptopID))) {
// exit("xml failed for RPTOP");
header("Location: " . $this->sess->url("ViewSOA.php") . "&status=1");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$rptop = new RPTOP();
$td = new TD();
$rptop->parseDomDocument($domDoc);
foreach ($rptop as $key => $value) {
$this->formArray['payableYear'] = $rptop->getTaxableYear();
$rptopID = $rptop->getRptopID();
if ($key == "tdArray") {
$tdCtr = 0;
if (count($value)) {
foreach ($value as $tkey => $tvalue) {
$td->selectRecord($tvalue->getTdID());
$assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
$propertyType = $td->getPropertyType();
$TaxDeclarationNumber = $td->getTaxDeclarationNumber();
// $this->tpl->set_var(kind,$propertyType);
// $this->tpl->set_var(currentTDNo,$TaxDeclarationNumber);
/* $dues = new Dues();
$dues->create($td->getTdID(), "","","","2003");
$this->tpl->set_var(basic,$dues->getBasic());
$totBasic += $dues->getBasic();
$this->tpl->set_var(sef,$dues->getSEF());
$totSEF += $dues->getSEF();
$this->tpl->set_var(total,$dues->getSEF()+$dues->getBasic());
$totTaxDue += $dues->getSEF()+$dues->getBasic();*/
$afsID = $td->getAfsID();
$afs = new AFS();
$afs->selectRecord($afsID);
$od = new OD();
$od->selectRecord($afs->getOdID());
$addr = $od->getLocationAddress();
if (count($addr)) {
//.........这里部分代码省略.........
示例14: Main
function Main()
{
$this->formArray['currentDate'] = date("F d, Y");
$MunicipalityCityDetails = new SoapObject(NCCBIZ . "MunicipalityCityDetails.php", "urn:Object");
#test values
//$this->formArray['municipalityCityID']=1;
if (!($xmlStr = $MunicipalityCityDetails->getMunicipalityCityDetails($this->formArray['municipalityCityID']))) {
#echo($xmlStr);
exit("xml failed for municipality");
//header("Location: ".$this->sess->url("ViewSOA.php")."&status=2");
} else {
if (!($domDoc = domxml_open_mem($xmlStr))) {
echo "error xmlDoc";
} else {
$MunicipalityCity = new MunicipalityCity();
$MunicipalityCity->parseDomDocument($domDoc);
$this->formArray['municipality'] = $MunicipalityCity->getDescription();
}
}
if ($this->formArray['personID'] != "") {
$person = new Person();
$person->selectRecord($this->formArray['personID']);
$this->tpl->set_var(ownerName, $person->getFullName());
$this->tpl->set_var(ownerNo, $person->getTin());
$address = $person->addressArray[0];
if (is_object($address)) {
$this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
} else {
$this->tpl->set_var(ownerAddress, "");
}
$db = new DB_RPTS();
$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['personID'];
$db->query($sql);
} else {
$company = new Company();
$company->selectRecord($this->formArray['companyID']);
$this->tpl->set_var(ownerName, $company->getCompanyName());
$this->tpl->set_var(ownerNo, $company->getCompanyID());
$address = $company->addressArray[0];
$this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
$db = new DB_RPTS();
$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['companyID'];
$db->query($sql);
}
$ypos = 325;
$this->tpl->set_block("rptsTemplate", "ROW", "RowBlk");
for ($i = 0; $db->next_record(); $i++) {
$rptopID = $db->f("rptopID");
$RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
if (!($xmlStr = $RPTOPDetails->getRPTOP($rptopID))) {
// exit("xml failed for RPTOP");
header("Location: " . $this->sess->url("ViewSOA.php") . "&status=1");
} else {
//echo $xmlStr;
if (!($domDoc = domxml_open_mem($xmlStr))) {
$this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
$this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
} else {
$rptop = new RPTOP();
$td = new TD();
$rptop->parseDomDocument($domDoc);
foreach ($rptop as $key => $value) {
$this->formArray['payableYear'] = $rptop->getTaxableYear();
$rptopID = $rptop->getRptopID();
if ($key == "tdArray") {
$tdCtr = 0;
if (count($value)) {
foreach ($value as $tkey => $tvalue) {
$td->selectRecord($tvalue->getTdID());
$assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
$propertyType = $td->getPropertyType();
$TaxDeclarationNumber = $td->getTaxDeclarationNumber();
$afsID = $td->getAfsID();
$afs = new AFS();
$afs->selectRecord($afsID);
$od = new OD();
$od->selectRecord($afs->getOdID());
$addr = $od->getLocationAddress();
if (count($addr)) {
$location = strtoupper($addr->getNumber() . " " . substr($addr->getBarangay(), 0, 4) . " " . substr($addr->getMunicipalityCity(), 0, 3) . " " . substr($addr->getProvince(), 0, 3));
$munCityID = $addr->getMunicipalityCityID();
}
if (count($afs->landArray)) {
foreach ($afs->landArray as $afsKey => $afsValue) {
$actualUse = $afsValue->getActualUse();
$landActualUses = new LandActualUses();
$landActualUses->selectRecord($actualUse);
$Code = $landActualUses->getCode();
}
}
if (count($afs->improvementsBuildingsArray)) {
foreach ($afs->improvementsBuildingsArray as $afsKey => $afsValue) {
$actualUse = $afsValue->getActualUse();
$improvementsBuildingsActualUses = new improvementsBuildingsActualUses();
$improvementsBuildingsActualUses->selectRecord($actualUse);
$Code = $improvementsBuildingsActualUses->getCode();
}
}
if ($munCityID == $this->formArray['municipalityCityID']) {
$this->tpl->set_var(location, $location);
//.........这里部分代码省略.........
示例15: displayImprovementsBuildingsList
function displayImprovementsBuildingsList($improvementsBuildingsList)
{
if (count($improvementsBuildingsList)) {
$i = 0;
foreach ($improvementsBuildingsList as $key => $improvementsBuildings) {
if ($i == 0) {
//$this->formArray["arpNumber"] = $improvementsBuildings->getArpNumber();
//$this->formArray["propertyIndexNumber"] = $improvementsBuildings->getPropertyIndexNumber();
$this->formArray["foundation"] = $improvementsBuildings->getFoundation();
$this->formArray["windows"] = $improvementsBuildings->getWindows();
$this->formArray["columns"] = $improvementsBuildings->getColumnsBldg();
$this->formArray["stairs"] = $improvementsBuildings->getStairs();
$this->formArray["beams"] = $improvementsBuildings->getBeams();
$this->formArray["partition"] = $improvementsBuildings->getPartition();
$this->formArray["trussFraming"] = $improvementsBuildings->getTrussFraming();
$this->formArray["wallFinish"] = $improvementsBuildings->getWallFinish();
$this->formArray["roof"] = $improvementsBuildings->getRoof();
$this->formArray["electrical"] = $improvementsBuildings->getElectrical();
$this->formArray["exteriorWalls"] = $improvementsBuildings->getExteriorWalls();
$this->formArray["toiletAndBath"] = $improvementsBuildings->getToiletAndBath();
$this->formArray["flooring"] = $improvementsBuildings->getFlooring();
$this->formArray["plumbingSewer"] = $improvementsBuildings->getPlumbingSewer();
$this->formArray["doors"] = $improvementsBuildings->getDoors();
$this->formArray["fixtures"] = $improvementsBuildings->getFixtures();
$this->formArray["ceiling"] = $improvementsBuildings->getCeiling();
$this->formArray["dateConstructed"] = $improvementsBuildings->getDateConstructed();
$this->formArray["structuralTypes"] = $improvementsBuildings->getStructuralTypes();
$this->formArray["dateOccupied"] = $improvementsBuildings->getDateOccupied();
// buildingClassification
$improvementsBuildingsClasses = new ImprovementsBuildingsClasses();
if (is_numeric($improvementsBuildings->getBuildingClassification())) {
$improvementsBuildingsClasses->selectRecord($improvementsBuildings->getBuildingClassification());
$this->formArray["classification"] = $improvementsBuildingsClasses->getDescription();
} else {
$this->formArray["classification"] = $improvementsBuildings->getBuildingClassification();
}
$this->formArray["dateCompleted"] = $improvementsBuildings->getDateCompleted();
$this->formArray["bldgPermit"] = $improvementsBuildings->getBuildingPermit();
$this->formArray["areaOfGroundFloor"] = $improvementsBuildings->getAreaOfGroundFloor();
$this->formArray["buildingAge"] = $improvementsBuildings->getBuildingAge();
$this->formArray["totalBuildingArea"] = $improvementsBuildings->getTotalBuildingArea();
$this->formArray["numberOfStoreys"] = $improvementsBuildings->getNumberOfStoreys();
$this->formArray["cctNumber"] = $improvementsBuildings->getCctNumber();
$this->formArray["bldgCore1"] = $improvementsBuildings->getBuildingCoreAndAdditionalItems();
$this->formArray["addItems"] = "";
$this->formArray["subTotal"] = "";
$this->formArray["adjustments"] = "";
$this->formArray["depreciationRate"] = $improvementsBuildings->getDepreciationRate();
$this->formArray["subTotal2"] = "";
$this->formArray["depreciationRate"] = $improvementsBuildings->getDepreciationRate();
$this->formArray["accumulatedDepreciation"] = $improvementsBuildings->getAccumulatedDepreciation();
if (is_a($improvementsBuildings->propertyAdministrator, Person)) {
$this->formArray["administrator"] = $improvementsBuildings->propertyAdministrator->getFullName();
if (is_a($improvementsBuildings->propertyAdministrator->addressArray[0], "address")) {
$address1 = $improvementsBuildings->propertyAdministrator->addressArray[0]->getNumber();
$address1 .= " " . $improvementsBuildings->propertyAdministrator->addressArray[0]->getStreet();
$address1 .= ", " . $improvementsBuildings->propertyAdministrator->addressArray[0]->getBarangay();
$address2 = $improvementsBuildings->propertyAdministrator->addressArray[0]->getDistrict();
$address2 .= ", " . $improvementsBuildings->propertyAdministrator->addressArray[0]->getMunicipalityCity();
$address2 .= ", " . $improvementsBuildings->propertyAdministrator->addressArray[0]->getProvince();
$this->formArray["adminAddress1"] = $address1;
$this->formArray["adminAddress2"] = $address2;
}
$this->formArray["adminTelno"] = $improvementsBuildings->propertyAdministrator->getTelephone();
}
// recommendingApproval
if (is_numeric($improvementsBuildings->recommendingApproval)) {
$recommendingApproval = new Person();
$recommendingApproval->selectRecord($improvementsBuildings->recommendingApproval);
$this->formArray["recommendingApproval"] = $recommendingApproval->getFullName();
$this->recommendingApproval = $recommendingApproval->getFullName();
} else {
$recommendingApproval = $improvementsBuildings->recommendingApproval;
$this->formArray["recommendingApproval"] = $recommendingApproval;
$this->recommendingApproval = $recommendingApproval;
}
$this->formArray["dateRecommendingApproval"] = $improvementsBuildings->getRecommendingApprovalDate();
// approvedBy
if (is_numeric($improvementsBuildings->approvedBy)) {
$approvedBy = new Person();
$approvedBy->selectRecord($improvementsBuildings->approvedBy);
$this->formArray["approvedBy"] = $approvedBy->getFullName();
$this->approvedBy = $approvedBy->getFullName();
} else {
$approvedBy = $improvementsBuildings->approvedBy;
$this->formArray["approvedBy"] = $approvedBy;
$this->approvedBy = $approvedBy;
}
$this->formArray["dateApprovedBy"] = $improvementsBuildings->getApprovedByDate();
// appraisedBy (assessedBy)
if (is_numeric($improvementsBuildings->appraisedBy)) {
$appraisedBy = new Person();
$appraisedBy->selectRecord($improvementsBuildings->appraisedBy);
$this->formArray["assessedBy"] = $appraisedBy->getFullName();
$this->appraisedBy = $appraisedBy->getFullName();
} else {
$appraisedBy = $improvementsBuildings->appraisedBy;
$this->formArray["assessedBy"] = $appraisedBy;
$this->appraisedBy = $appraisedBy;
}
//.........这里部分代码省略.........