/** * Return the string representation for the birth country * * @return string */ public function getBirthCountryRepresentation() { $country = CountryPeer::retrieveByPK($this->getBirthCountry()); if ($country) { return $country->getName(); } }
public function getCountryname($cid) { if ($cid) { return CountryPeer::retrieveByPK($cid)->getName(); } else { return "NA"; } }
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; }
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"> </div> <div class="centermsg">Note: Number of results may vary from actual statistics due to privacy settings.</div> <div class="vspacer10"> </div> </div>
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; }