* finish task #7194.

This commit is contained in:
wangyidong
2020-05-13 11:18:19 +08:00
parent 5149270fdf
commit 1c6aefeb9d
2 changed files with 32 additions and 48 deletions
+23
View File
@@ -1746,6 +1746,29 @@ class projectModel extends model
return array('' => '') + $users;
}
/**
* Get team slice.
*
* @param array $teams
* @param string $begin
* @param string $end
* @access public
* @return array
*/
public function getTeamSlice($teams, $begin, $end)
{
$members = array();
foreach($teams as $account => $team)
{
if($account == $end) break;
if(!empty($begin) and $account != $begin and empty($members)) continue;
$members[$account] = $team;
}
return $members;
}
/**
* Get teams which can be imported.
*