本文整理汇总了PHP中Character::getAChars方法的典型用法代码示例。如果您正苦于以下问题:PHP Character::getAChars方法的具体用法?PHP Character::getAChars怎么用?PHP Character::getAChars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character
的用法示例。
在下文中一共展示了Character::getAChars方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="numStats">
<ul>
<li>
<?php
echo Account::getAAccounts();
?>
<span><?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'accounts');
?>
</span>
</li>
<li>
<?php
echo Character::getAChars();
?>
<span><?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'characters');
?>
</span>
</li>
<li class="last">
<?php
echo Guild::getAGuilds();
?>
<span><?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'guilds');
?>
</span>
</li>
示例2: array
images/up_panel.gif" alt="ajax"/>
<div class="upd-txt"><?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'Updating');
?>
</div>
</div>
</div>
<div id="char-select">
<div class="cs-title"><?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'Select a character');
?>
:</div>
<?php
echo CHtml::dropDownList('char', '', Character::getAChars(), array('options' => array(Yii::app()->user->char => array('selected' => 'selected'))));
?>
</div>
<div class="exit-link n-info">
<a href="<?php
echo $this->createUrl('cp/logout');
?>
">
<?php
echo Yii::t('' . Yii::app()->request->cookies['language']->value . '', 'Sign out');
?>
</a>
</div>
</div>
<div class="clear"></div>
示例3: sizeof
<?php
$chars = 5 - sizeof(Character::getAChars());
?>
<div id="selected-char">
<div id="schar-info">
<div id="char-bar-info">
</div>
</div>
<div id="char-select">
<ul id="hero-tabs">
<?php
foreach (Character::getAChars() as $char) {
?>
<li>
<a class="hero-tab <?php
echo strtolower(Character::getCClass($char->Class, '3')) . $this->checkCS($char->Name);
?>
" href="<?php
echo $this->createUrl('cp/update', array('id' => $char->Name));
?>
" onClick="updateSC(this);return false;">
<span class="hero-portrait"></span>
<span class="name"><?php
echo $char->Name;
?>
</span>
</a>