本文整理匯總了PHP中app\helpers\Helper::getIconForUserProfileBYAdmin方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::getIconForUserProfileBYAdmin方法的具體用法?PHP Helper::getIconForUserProfileBYAdmin怎麽用?PHP Helper::getIconForUserProfileBYAdmin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app\helpers\Helper
的用法示例。
在下文中一共展示了Helper::getIconForUserProfileBYAdmin方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
<? foreach ($usersActivity as $ua): ?>
<li class="time-label">
<span class="bg-red">
<?php
echo explode(' ', Helper::dateConverter($ua['time']))[0];
?>
</span>
</li>
<!-- /.timeline-label -->
<? if (is_array($ua['records']) && !empty($ua['records'])): ?>
<? foreach ($ua['records'] as $r): ?>
<? list($activDate, $ativTime) = explode(' ', $r['time']) ?>
<!-- timeline item -->
<li>
<i class="<?php
echo Helper::getIconForUserProfileBYAdmin($r['operation']);
?>
"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> <?php
echo $ativTime;
?>
</span>
<? $link = "" ?>
<? $string = "{$translate[$r['operation']]} {$translate[$r['table_name']]['name']} <a href='{$translate[$r['table_name']]['link']}{$r['object_id']}'>«{$r['object_title']}»</a>" ?>
<h3 class="timeline-header"><a href="/admin/profile/id/<?php
echo $r['manager'];
?>
"><?php
echo $r['manager_name'];
?>