For OdooExtensions

Merge branch 'master' of https://github.com/FH-Complete/FHC-Core
This commit is contained in:
Paminger
2015-04-16 10:33:56 +02:00
58 changed files with 10304 additions and 5232 deletions
+19
View File
@@ -848,5 +848,24 @@ class person extends basis_db
}
public function getFullName($allFirstnames=FALSE)
{
$fullname = "";
if((!is_null($this->titelpre)) && ($this->titelpre!=""))
$fullname .= $this->titelpre." ";
$fullname .= $this->vorname." ";
if(($allFirstnames) && ($this->vornamen != "") && (!is_null($this->vornamen)))
$fullname .= $this->vornamen." ";
$fullname .= $this->nachname;
if((!is_null($this->titelpost)) && ($this->titelpost!=""))
$fullname .= " ".$this->titelpost;
return $fullname;
}
}
?>