private $pid;
private $hrpid;
+ private $owner;
+ private $owner_fetched = false;
private $data = array();
private $visibility = null;
return $this->hrpid;
}
+ public function owner()
+ {
+ if ($this->owner == null && !$this->owner_fetched) {
+ $this->owner_fetched = true;
+ $this->owner = User::getSilent($this);
+ }
+ return $this->owner;
+ }
+
public function promo()
{
return $this->promo;
return ($this->deathdate != null);
}
+ public function displayEmail()
+ {
+ $o = $this->owner();
+ if ($o != null) {
+ return $o->bestEmail();
+ } else {
+ return $this->email_directory;
+ }
+ }
+
public function data()
{
$this->first_name;
return $this->medals->medals;
}
- public function owner()
- {
- return User::getSilent($this);
- }
-
public function compareNames($firstname, $lastname)
{
$_lastname = mb_strtoupper($this->lastName());