* finish task #7194.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user