Represents an instance of ProcessWire connected with a set of API variables.
This class boots a ProcessWire instance. The current ProcessWire instance is represented by the
$wire API variable.
// To create a new ProcessWire instance
$wire = new ProcessWire('/server/path/', 'https://hostname/url/');
Click any linked item for full usage details and examples. Hookable methods are indicated with the
ProcessWire class also inherits all the methods and properties of: Wire.
icon. In addition to those shown below, the
|ProcessWire::htaccessVersion const||300||Minimum required .htaccess file version|| |
|ProcessWire::indexVersion const||300||Minimum required index.php version, represented by the PROCESSWIRE define|| |
|ProcessWire::statusBoot const||0||Status when system is booting|| |
|ProcessWire::statusFailed const||1024||Status when the request failed due to an Exception or 404|| |
|ProcessWire::statusFinished const||16||Status when the request has been fully delivered|| |
|ProcessWire::statusInit const||2||Status when system and modules are initializing|| |
|ProcessWire::statusReady const||4||Systus when system, $page and API variables are ready|| |
|ProcessWire::statusRender const||8||Status when the current $page’s template file is being rendered|| |
|ProcessWire::versionMajor const||3||Major version number|| |
|ProcessWire::versionMinor const||0||Minor version number|| |
|ProcessWire::versionRevision const||127||Reversion revision number|| |
|ProcessWire::versionSuffix const||(nothing)||Version suffix string (when applicable)|| |
These methods are only useful for hooking and should not be called directly.
|(nothing)||Hookable ready for anyone that wants to hook when the request is finished|
|(nothing)||Hookable init for anyone that wants to hook immediately before any autoload modules initialized or after all modules initialized|
|(nothing)||Hookable ready for anyone that wants to hook immediately before any autoload modules ready or after all modules ready|
Methods for managing ProcessWire instances. Note that most of these methods are static.
Additional methods and properties
In addition to the methods and properties above, ProcessWire also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.127