コード例 #1
0
ファイル: User.inc.php プロジェクト: alcexhim/PhoenixSNS
 public function ToString()
 {
     $value = "<span class=\"ProfileBadges\">";
     $badges = Badge::GetByUser($this);
     foreach ($badges as $badge) {
         $value .= "<img src=\"" . System::ExpandRelativePath("~/images/badges/" . $badge->Name . ".png") . "\" alt=\"" . $badge->Title . "\" title=\"" . $badge->Title . "\" /> ";
     }
     $value .= "</span>";
     $value .= $this->LongName;
     return $value;
 }