Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php |
2 | namespace Civi\Setup\UI; | |
3 | ||
4 | interface SetupControllerInterface { | |
5 | ||
6 | /** | |
7 | * @param string $method | |
8 | * Ex: 'GET' or 'POST'. | |
9 | * @param array $fields | |
10 | * List of any HTTP POST fields. | |
11 | * @return array | |
12 | * The HTTP headers and response text. | |
13 | * [0 => $headers, 1 => $body]. | |
14 | */ | |
15 | public function run($method, $fields = array()); | |
16 | ||
17 | /** | |
18 | * @param array $urls | |
19 | * Some mix of the following: | |
20 | * - res: The base URL for loading resource files (images/javascripts) for this | |
21 | * project. Includes trailing slash. | |
22 | * - ctrl: The URL of this setup controller. May be used for POST-backs. | |
23 | * @return $this | |
24 | */ | |
25 | public function setUrls($urls); | |
26 | ||
27 | } |