score_to_name($score);
$html = "
Current score is \"$s_score\"
";
$page->add_block(new Block(null, $html, "main", 7));
}
public function score_to_name($score) {
$words = array();
$words[-2] = "Delete";
$words[-1] = "Bad";
$words[ 0] = "Ok";
$words[ 1] = "Good";
$words[ 2] = "Favourite";
$s_score = $words[$score];
return $s_score;
}
}
?>