1 | <?php |
||
8 | class SchemaHandler |
||
9 | { |
||
|
|||
10 | protected $schemaId; |
||
11 | protected $template; |
||
12 | protected $replacements; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * @return string schemaUrl |
||
17 | */ |
||
18 | 14 | static function getSchemaUrl($schemaId, Application $app) |
|
30 | |||
31 | |||
32 | /** |
||
33 | * create a schema from template if it does not exist |
||
34 | * |
||
35 | * @return string schemaUrl |
||
36 | */ |
||
37 | 3 | protected static function _register(Application $app, $schemaId, $template, array $replacements) |
|
58 | |||
59 | |||
60 | 2 | static function register(Application $app, $schemaId=null, $template=null, array $replacements = array()) |
|
65 | |||
66 | |||
67 | 6 | public function __construct($schemaId, $template=null, array $replacements = array()) |
|
75 | |||
76 | |||
77 | 1 | public function __invoke(Request $request, Application $app) |
|
81 | } |
||
82 |