Documentation

SetupControllerInterface

Table of Contents

Methods

run()  : array<string|int, mixed>
setUrls()  : $this

Methods

run()

public run(string $method[, array<string|int, mixed> $fields = array() ]) : array<string|int, mixed>
Parameters
$method : string

Ex: 'GET' or 'POST'.

$fields : array<string|int, mixed> = array()

List of any HTTP POST fields.

Return values
array<string|int, mixed>

The HTTP headers and response text. [0 => $headers, 1 => $body].

setUrls()

public setUrls(array<string|int, mixed> $urls) : $this
Parameters
$urls : array<string|int, mixed>

Some mix of the following:

  • res: The base URL for loading resource files (images/javascripts) for this project. Includes trailing slash.
  • ctrl: The URL of this setup controller. May be used for POST-backs.
Return values
$this

        
On this page

Search results