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
파일 보기
프로젝트 열기: elgg/elgg
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_instance | Reference to the loaded Application returned by elgg() |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | Elgg\Filesystem\Directory |
public static getDataPath ( ) : string | ||
리턴 | string |
public getDb ( ) : |
||
리턴 |
public static isTestingApplication ( ) : boolean | ||
리턴 | boolean |
public loadSettings ( ) : void | ||
리턴 | void |
public static setTestingApplication ( boolean $testing = true ) : void | ||
$testing | boolean | Is testing application |
리턴 | void |