Ejemplo n.º 1
0
 /**
  * Return first name
  *
  * If $force_value is true and first name value is not present, system will
  * use email address part before @domain.tld
  *
  * @param boolean $force_value
  * @return string
  */
 function getFirstName($force_value = false)
 {
     $result = parent::getFirstName();
     if (empty($result) && $force_value) {
         $email = $this->getEmail();
         return substr_utf($email, 0, strpos_utf($email, '@'));
     }
     // if
     return $result;
 }