game/_incl_data/class/Season.php
2022-12-30 21:03:50 +02:00

32 lines
919 B
PHP

<?php
use Core\Db;
class Season
{
public static $yy = [
1 => [1, '01', 'ßíâàðü', 'ßíâàðüñêèé'],
2 => [2, '02', 'Ôåâðàëü', 'Ôåâðàëüñêèé'],
3 => [3, '03', 'Ìàðò', 'Ìàðòîâñêèé'],
4 => [4, '04', 'Àïðåëü', 'Àïðåëüñêèé'],
5 => [5, '05', 'Ìàé', 'Ìàéñêèé'],
6 => [6, '06', 'Èþíü', 'Èþíüñêèé'],
7 => [7, '07', 'Èþëü', 'Èþëüñêèé'],
8 => [8, '08', 'Àâãóñò', 'Àâãóñòîâñêèé'],
9 => [9, '09', 'Ñåíòÿáðü', 'Ñåíòÿáðüñêèé'],
10 => [10, '10', 'Îêòÿáðü', 'Îêòÿáðüñêèé'],
11 => [11, '11', 'Íîÿáðü', 'Íîÿáðüñêèé'],
12 => [12, '12', 'Äåêàáðü', 'Äåêàáðüñêèé'],
];
public static $date = [];
public static $m = [];
public static function data($val)
{
self::$m = Db::getRow('select * from sss_m where id = ?', [$val]);
if (self::$m['s'] != self::$date['m']) {
self::$m = [];
}
}
}