本文整理匯總了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>