本文整理匯總了PHP中Profile::fetchRealName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Profile::fetchRealName方法的具體用法?PHP Profile::fetchRealName怎麽用?PHP Profile::fetchRealName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Profile
的用法示例。
在下文中一共展示了Profile::fetchRealName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getUserPairs
public function getUserPairs()
{
$pairs = array();
foreach ($this->getUsernames() as $username) {
$pairs[] = array('id' => $username, 'name' => Profile::fetchRealName($username));
}
return $pairs;
}
示例2:
echo fHTML::encode($this->record->getJudgeMessage());
?>
</pre>
<pre class="prettyprint linenums"><?php
echo fHTML::encode($this->record->getSubmitCode());
?>
</pre>
</div>
<ul class="span3">
<li>
提交者:
<?php
echo fHTML::encode($this->record->getOwner());
?>
<?php
echo fHTML::encode(Profile::fetchRealName($this->record->getOwner()));
?>
</li>
<li>
題目編號:
<a href="<?php
echo SITE_BASE;
?>
/problem/<?php
echo $this->record->getProblemId();
?>
">
<?php
echo $this->record->getProblemId();
?>
</a>
示例3: foreach
</tr>
</thead>
<tbody>
<?php
foreach ($this->user_stats as $i => $user_stat) {
?>
<tr>
<td><?php
echo $i + 1 + ($this->page - 1) * $this->user_stats->getLimit();
?>
</td>
<td><?php
echo $user_stat->getUsername();
?>
<?php
echo Profile::fetchRealName($user_stat->getUsername());
?>
</td>
<td><?php
echo $user_stat->getSolved();
?>
</td>
<td><?php
echo $user_stat->getTried();
?>
</td>
<td><?php
echo $user_stat->getSubmissions();
?>
</td>
</tr>
示例4:
<div class="page-header">
<h1><?php
echo $title;
?>
</h1>
</div>
<form action="<?php
echo SITE_BASE;
?>
/change/info" method="POST" class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="realname">姓名 (必填)</label>
<div class="controls">
<input type="text" class="input-medium" id="realname" name="realname" placeholder="姓名" value="<?php
echo Profile::fetchRealName(fAuthorization::getUserToken());
?>
">
</div>
</div>
<div class="control-group">
<label class="control-label">性別 (必填)</label>
<div class="controls">
<?php
$gender = Profile::fetchGender(fAuthorization::getUserToken());
?>
<label style="display:inline"><input type="radio" name="gender" value="男"<?php
if ($gender == '男') {
echo ' checked';
}
?>
示例5: foreach
foreach ($this->records as $r) {
?>
<tr>
<td><a href="<?php
echo $this->top_url;
echo $r->getId();
?>
"><?php
echo $r->getId();
?>
</a></td>
<td><?php
echo fHTML::encode($r->getOwner());
?>
<?php
echo fHTML::encode(Profile::fetchRealName($r->getOwner()));
?>
</td>
<td>
<a href="<?php
echo SITE_BASE;
?>
/problem/<?php
echo $r->getProblemId();
?>
"><?php
echo $r->getProblemId();
?>
</a>
<?php
if (fAuthorization::checkLoggedIn()) {