| 1 | <?php |
||
| 17 | class Globals { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get global $WT_TREE variable. |
||
| 21 | * |
||
| 22 | * @return \Fisharebest\Webtrees\Tree |
||
| 23 | */ |
||
| 24 | public static function getTree() { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Check whether the visitor is a bot. |
||
| 32 | * |
||
| 33 | * @return boolean |
||
| 34 | */ |
||
| 35 | public static function isSearchSpider() { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get the current controller. |
||
| 43 | * |
||
| 44 | * @return \Fisharebest\Webtrees\BaseController |
||
| 45 | */ |
||
| 46 | public static function getController() { |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the global facts |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public static function getGlobalFacts() { |
||
| 62 | |||
| 63 | } |
||
| 64 |