| 1 | <?php |
||
| 14 | class Extend { |
||
| 15 | /** |
||
| 16 | * Dictionary of extensions |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected static $extensions = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get extensions for type |
||
| 24 | * |
||
| 25 | * @param string $type |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public static function get( $type ) { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set extension for type, with name and class name |
||
| 34 | * |
||
| 35 | * @throws Exception |
||
| 36 | * @param string $type |
||
| 37 | * @param string $name |
||
| 38 | * @param string $class_name |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | public static function set( $type, $name, $class_name ) { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Register a route condition |
||
| 50 | * |
||
| 51 | * @param string $name |
||
| 52 | * @param string $class_name |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | public static function routeCondition( $name, $class_name ) { |
||
| 58 | } |
||
| 59 |