php -S localhost:8888 /full/path/to/elgg/index.php
The full path is necessary to work around this: https://bugs.php.net/bug.php?id=55726
Mostrar archivo
Open project: elgg/elgg
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$_instance | Reference to the loaded Application returned by elgg() |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
__get ( string $name ) : mixed | Get an undefined property | |
bootCore ( ) : void | Bootstrap the Elgg engine, loads plugins, and calls initial system events | |
elggDir ( ) : Elgg\Filesystem\Directory | Returns a directory that points to the root of Elgg, but not necessarily the install root. See self::root() for that. | |
getDataPath ( ) : string | Determine the Elgg data directory with trailing slash, save it to config, and return it | |
getDb ( ) : |
Get a Database wrapper for performing queries without booting Elgg | |
index ( ) : boolean | Elgg's front controller. Handles basically all incoming URL requests. | |
install ( ) : void | Renders a web UI for installing Elgg. | |
isTestingApplication ( ) : boolean | Checks if the application is running in PHPUnit | |
loadCore ( ) : void | Load all Elgg procedural code and wire up boot events, but don't boot | |
loadSettings ( ) : void | Load settings.php | |
run ( ) : boolean | Routes the request, booting core if not yet booted | |
setTestingApplication ( boolean $testing = true ) : void | Flag this application as running for testing (PHPUnit) | |
start ( ) : self | Start and boot the core | |
upgrade ( ) : void | Elgg upgrade script. |
Method | Description | |
---|---|---|
allowPathRewrite ( ) : void | Allow plugins to rewrite the path. | |
create ( ) : self | Creates a new, trivial instance of Elgg\Application and set it as the singleton instance. | |
setupPath ( ) : string | Get the request URI and store it in $_GET['__elgg_uri'] |
public __construct ( |
||
$services | Elgg services provider |
public static elggDir ( ) : Elgg\Filesystem\Directory | ||
return | Elgg\Filesystem\Directory |
public static getDataPath ( ) : string | ||
return | string |
public getDb ( ) : |
||
return |
public static isTestingApplication ( ) : boolean | ||
return | boolean |
public loadSettings ( ) : void | ||
return | void |
public static setTestingApplication ( boolean $testing = true ) : void | ||
$testing | boolean | Is testing application |
return | void |