/** * Obtain an assembled string representation of the agent's name. * * @return namestring for a team or organization, concatenated atomic name fields for an individual. */ public function getAssembledName($showCurated = true) { if ($this->curated == 1 && $showCurated) { $curated = "*"; } else { $curated = ""; } if (strlen($this->namestring) > 0) { return trim($this->namestring . " {$curated}"); } else { $am = new AgentManager(); return trim($am->assembleNameBits($this->prefix, $this->firstname, $this->middlename, $this->familyname, $this->suffix, $this->name, 'First Middle Last') . " {$curated}"); } }