- subfolders for different classes

- Improved file and class naming
- "handler"-> "listener" (callbacks, commands)
This commit is contained in:
Steffen Schröder committed 2013-11-12 15:48:25 +01:00
1 parent 348db3602a
commit 9e5e444552
21 files changed
+515 -394

No files matched your search

@@ -0,0 +1,31 @@
<?php
namespace ManiaControl\Manialinks;
/**
* 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;
}
}
?>