-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_implementation.php
More file actions
31 lines (28 loc) · 923 Bytes
/
example_implementation.php
File metadata and controls
31 lines (28 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?
require_once('./class_MultiAtasciiGen.php'); // general AtasciGen class - required
class ExampleGenerator extends MultiAtasciiGen {
function fetchScoreboardFromDB() {
// here is place for fetchin scoreboard data from database
$this->scoreboard=array(
["date"=>0, "nick"=>"PeBe", "score"=>"ABC"],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""],
["date"=>0, "nick"=>"", "score"=>""]
);
}
function getScoreboardEntry($place) {
// This is where the scoreboard data is retrieved :)
return [
"place"=>$place,
"nick"=>$this->scoreboard[$place-1]["nick"],
"score"=>$this->scoreboard[$place-1]["score"]
];
}
}
?>