You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
506 B
25 lines
506 B
2 months ago
|
<?php
|
||
|
|
||
|
class SeasonsPage extends Page {
|
||
|
/**
|
||
|
* @kql-allowed
|
||
|
*/
|
||
|
public function getAllGames() {
|
||
|
$children = new Pages();
|
||
|
foreach ($this->children() as $key => $value) {
|
||
|
$children->add($value->getAllGames());
|
||
|
}
|
||
|
return $children;
|
||
|
}
|
||
|
/**
|
||
|
* @kql-allowed
|
||
|
*/
|
||
|
public function getRunningTournaments() {
|
||
|
$children = new Pages();
|
||
|
foreach ($this->children() as $key => $value) {
|
||
|
$children->add($value->getRunningTournaments());
|
||
|
}
|
||
|
return $children;
|
||
|
}
|
||
|
}
|