Definition at line 12 of file ElggRewriteTester.php.
◆ __construct()
ElggRewriteTester::__construct |
( |
| ) |
|
◆ createHtaccess()
ElggRewriteTester::createHtaccess |
( |
|
$url | ) |
|
Create Elgg's .htaccess file or confirm that it exists.
- Parameters
-
string | $url | URL of rewrite test |
- Returns
- bool
Definition at line 149 of file ElggRewriteTester.php.
◆ guessSubdirectory()
ElggRewriteTester::guessSubdirectory |
( |
|
$url | ) |
|
Guess if url contains subdirectory or not.
- Parameters
-
string | $url | Rewrite test URL |
- Returns
- string|bool Subdirectory string with beginning and trailing slash or false if were unable to determine subdirectory or pointing at root of domain already
Definition at line 74 of file ElggRewriteTester.php.
◆ guessWebServer()
static ElggRewriteTester::guessWebServer |
( |
| ) |
|
|
static |
Guess the web server from $_SERVER['SERVER_SOFTWARE'].
- Returns
- string
Definition at line 55 of file ElggRewriteTester.php.
◆ returnStatus()
ElggRewriteTester::returnStatus |
( |
|
$url | ) |
|
|
protected |
◆ run()
ElggRewriteTester::run |
( |
|
$url, |
|
|
|
$path |
|
) |
| |
Run the rewrite test and return a status array.
- Parameters
-
string | $url | URL of rewrite test |
string | $path | Root directory of Elgg with trailing slash |
- Returns
- array
Definition at line 33 of file ElggRewriteTester.php.
◆ runLocalhostAccessTest()
ElggRewriteTester::runLocalhostAccessTest |
( |
| ) |
|
Check whether the site homepage can be fetched via curl.
- Returns
- boolean
Definition at line 104 of file ElggRewriteTester.php.
◆ runRewriteTest()
ElggRewriteTester::runRewriteTest |
( |
|
$url | ) |
|
Hit the rewrite test URL to determine if the rewrite rules are working.
- Parameters
-
string | $url | Rewrite test URL |
- Returns
- bool
Definition at line 94 of file ElggRewriteTester.php.
◆ $htaccessIssue
ElggRewriteTester::$htaccessIssue |
|
protected |
◆ $rewriteTestPassed
ElggRewriteTester::$rewriteTestPassed |
|
protected |
◆ $serverSupportsRemoteRead
ElggRewriteTester::$serverSupportsRemoteRead |
|
protected |
◆ $webserver
ElggRewriteTester::$webserver |
|
protected |
The documentation for this class was generated from the following file: