blob: e5669d2779bcdc1fc3f43bcee1874f5ab179b68e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* Processors read associated arrays and register
* whatever is required
*
* @since 1.25
*/
interface Processor {
/**
* Main entry point, processes the information
* provided.
* Callers should call "callback" after calling
* this function.
*
* @param string $path Absolute path of JSON file
* @param array $info
* @param int $version manifest_version for info
* @return array "credits" information to store
*/
public function extractInfo( $path, array $info, $version );
/**
* @return array With following keys:
* 'globals' - variables to be set to $GLOBALS
* 'defines' - constants to define
* 'callbacks' - functions to be executed by the registry
* 'credits' - metadata to be stored by registry
* 'attributes' - registration info which isn't a global variable
*/
public function getExtractedInfo();
/**
* Get the requirements for the provided info
*
* @since 1.26
* @param array $info
* @return array Where keys are the name to have a constraint on,
* like 'MediaWiki'. Values are a constraint string like "1.26.1".
*/
public function getRequirements( array $info );
}
|