本文整理汇总了PHP中UsersHelper::getTeams方法的典型用法代码示例。如果您正苦于以下问题:PHP UsersHelper::getTeams方法的具体用法?PHP UsersHelper::getTeams怎么用?PHP UsersHelper::getTeams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UsersHelper
的用法示例。
在下文中一共展示了UsersHelper::getTeams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
echo $user_id;
?>
,0)" ><?php
echo TextHelper::_('COBALT_ME');
?>
</a></li>
<?php
if ($user_role != 'basic') {
?>
<li><a href="javascript:void(0);" class="filter_user_all" onclick="Task.updateEventList('all',0)" >all users</a></li>
<?php
}
?>
<?php
if ($user_role == 'exec') {
$teams = UsersHelper::getTeams();
if (count($teams) > 0) {
foreach ($teams as $team) {
echo "<li><a href='javascript:void(0);' class='filter_team_" . $team['team_id'] . "' onclick='Task.updateEventList(0," . $team['team_id'] . ")'>" . $team['team_name'] . TextHelper::_('COBALT_TEAM_APPEND') . "</a></li>";
}
}
}
$users = UsersHelper::getUsers();
if (count($users) > 0) {
foreach ($users as $user) {
echo "<li><a href='javascript:void(0);' class='filter_user_" . $user['id'] . "' onclick='Task.updateEventList(" . $user['id'] . ",0)'>" . $user['first_name'] . " " . $user['last_name'] . "</a></li>";
}
}
?>
</ul>
</span>