TrackManiaControl/application/core/manialinkIdHandler.php
Steffen Schröder 950ad1098b - improved player and playerHandler
- logs subfolder
2013-11-10 17:27:02 +01:00

30 lines
484 B
PHP

<?php
namespace ManiaControl;
/**
* Handler for manialink ids
*
* @author kremsy & steeffeen
*/
class ManialinkIdHandler {
/**
* Private properties
*/
private $maniaLinkIdCount = 0;
/**
* Reserve manialink ids
*
* @param int $count
* @return array with manialink Ids
*/
public function reserveManiaLinkIds($count) {
$mlIds = array();
for ($i = 0; $i < $count; $i++) {
array_push($mlIds, ++$this->maniaLinkIdCount);
}
return $mlIds;
}
}
?>