Merge "Convert mediawiki.toc and mediawiki.user to using mw.cookie"
[lhc/web/wiklou.git] / includes / registration / Processor.php
1 <?php
2
3 /**
4 * Processors read associated arrays and register
5 * whatever is required
6 *
7 * @since 1.25
8 */
9 interface Processor {
10
11 /**
12 * Main entry point, processes the information
13 * provided.
14 * Callers should call "callback" after calling
15 * this function.
16 *
17 * @param string $path Absolute path of JSON file
18 * @param array $info
19 * @return array "credits" information to store
20 */
21 public function extractInfo( $path, array $info );
22
23 /**
24 * @return array With following keys:
25 * 'globals' - variables to be set to $GLOBALS
26 * 'defines' - constants to define
27 * 'callbacks' - functions to be executed by the registry
28 * 'credits' - metadata to be stored by registry
29 * 'attributes' - registration info which isn't a global variable
30 */
31 public function getExtractedInfo();
32 }