Пример #1
0
 /**
  * Return the string representation for the birth country
  *
  * @return string
  */
 public function getBirthCountryRepresentation()
 {
     $country = CountryPeer::retrieveByPK($this->getBirthCountry());
     if ($country) {
         return $country->getName();
     }
 }
Пример #2
0
 public function getCountryname($cid)
 {
     if ($cid) {
         return CountryPeer::retrieveByPK($cid)->getName();
     } else {
         return "NA";
     }
 }
Пример #3
0
 public function getCountry($con = null)
 {
     include_once 'lib/model/om/BaseCountryPeer.php';
     if ($this->aCountry === null && $this->country_id !== null) {
         $this->aCountry = CountryPeer::retrieveByPK($this->country_id, $con);
     }
     return $this->aCountry;
 }
Пример #4
0
    if ($chap) {
        echo "<b>" . ChapterPeer::retrieveByPK($chap)->getname() . "</b>";
    } else {
        echo '<i>any</i>';
    }
    ?>
				<br>Location: <?php 
    if ($loc) {
        echo "<b>" . $loc . "</b>";
    } else {
        echo '<i>any</i>';
    }
    ?>
				<br>Country: <?php 
    if ($cn) {
        echo "<b>" . CountryPeer::retrieveByPK($cn)->getname() . "</b>";
    } else {
        echo '<i>any</i>';
    }
    ?>
				</center>
				</div>
		<?php 
}
?>
	<div class="vspacer20">&nbsp;</div>	
		<div class="centermsg">Note: Number of results may vary from actual statistics due to privacy settings.</div>
	<div class="vspacer10">&nbsp;</div>
</div>

Пример #5
0
 public function getCountryRelatedByNationality($con = null)
 {
     include_once 'lib/model/om/BaseCountryPeer.php';
     if ($this->aCountryRelatedByNationality === null && $this->nationality !== null) {
         $this->aCountryRelatedByNationality = CountryPeer::retrieveByPK($this->nationality, $con);
     }
     return $this->aCountryRelatedByNationality;
 }