Пример #1
0
 /**
  * GET FULL NAME
  * 
  * @param number $account_id
  * @return string|Ambigous <string, string>
  */
 public function getFullName($account_id = 0)
 {
     $model = $this;
     if ($account_id > 0) {
         $profile = AccountProfile::model()->getProfile($account_id);
         if ($profile) {
             $model = $profile;
         }
     }
     $name = $model->account_profile_given_name . " " . $model->account_profile_surname . ".";
     if (trim($name) != '.') {
         return LBApplication::encodeToUTF8($name);
     }
     return '';
 }