| 1 | <?php |
||
| 12 | abstract class Extension { |
||
| 13 | |||
| 14 | protected static $loader = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Check if an item name is valid |
||
| 18 | */ |
||
| 19 | |||
| 20 | public static function isValid(string $name) : bool { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Validate an item name |
||
| 27 | * |
||
| 28 | * @return string|false : the name or false on failure |
||
| 29 | */ |
||
| 30 | |||
| 31 | public static function validate(string $name) { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Check if the extension is inited |
||
| 38 | */ |
||
| 39 | |||
| 40 | public static function isInited() { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Static overloader |
||
| 47 | */ |
||
| 48 | |||
| 49 | public static function __callStatic($name, $arguments) { |
||
| 55 | } |
||
| 56 | } |
||
| 57 |