本文整理汇总了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()) {