Elgg  Version 2.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ElggRewriteTester Class Reference

Public Member Functions

 __construct ()
 Set the webserver as unknown. More...
 
 run ($url, $path)
 Run the rewrite test and return a status array. More...
 
 guessSubdirectory ($url)
 Guess if url contains subdirectory or not. More...
 
 runRewriteTest ($url)
 Hit the rewrite test URL to determine if the rewrite rules are working. More...
 
 runLocalhostAccessTest ()
 Check whether the site homepage can be fetched via curl. More...
 
 createHtaccess ($url)
 Create Elgg's .htaccess file or confirm that it exists. More...
 

Static Public Member Functions

static guessWebServer ()
 Guess the web server from $_SERVER['SERVER_SOFTWARE']. More...
 

Protected Member Functions

 returnStatus ($url)
 Create the status array required by the ElggInstaller. More...
 

Protected Attributes

 $webserver
 
 $serverSupportsRemoteRead
 
 $rewriteTestPassed
 
 $htaccessIssue
 

Detailed Description

Definition at line 12 of file ElggRewriteTester.php.

Constructor & Destructor Documentation

ElggRewriteTester::__construct ( )

Set the webserver as unknown.

Definition at line 21 of file ElggRewriteTester.php.

Member Function Documentation

ElggRewriteTester::createHtaccess (   $url)

Create Elgg's .htaccess file or confirm that it exists.

Parameters
string$urlURL of rewrite test
Returns
bool

Definition at line 149 of file ElggRewriteTester.php.

ElggRewriteTester::guessSubdirectory (   $url)

Guess if url contains subdirectory or not.

Parameters
string$urlRewrite 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.

static ElggRewriteTester::guessWebServer ( )
static

Guess the web server from $_SERVER['SERVER_SOFTWARE'].

Returns
string

Definition at line 55 of file ElggRewriteTester.php.

ElggRewriteTester::returnStatus (   $url)
protected

Create the status array required by the ElggInstaller.

Parameters
string$urlRewrite test URL
Returns
array

Definition at line 207 of file ElggRewriteTester.php.

ElggRewriteTester::run (   $url,
  $path 
)

Run the rewrite test and return a status array.

Parameters
string$urlURL of rewrite test
string$pathRoot directory of Elgg with trailing slash
Returns
array

Definition at line 33 of file ElggRewriteTester.php.

ElggRewriteTester::runLocalhostAccessTest ( )

Check whether the site homepage can be fetched via curl.

Returns
boolean

Definition at line 104 of file ElggRewriteTester.php.

ElggRewriteTester::runRewriteTest (   $url)

Hit the rewrite test URL to determine if the rewrite rules are working.

Parameters
string$urlRewrite test URL
Returns
bool

Definition at line 94 of file ElggRewriteTester.php.

Member Data Documentation

ElggRewriteTester::$htaccessIssue
protected

Definition at line 16 of file ElggRewriteTester.php.

ElggRewriteTester::$rewriteTestPassed
protected

Definition at line 15 of file ElggRewriteTester.php.

ElggRewriteTester::$serverSupportsRemoteRead
protected

Definition at line 14 of file ElggRewriteTester.php.

ElggRewriteTester::$webserver
protected

Definition at line 13 of file ElggRewriteTester.php.


The documentation for this class was generated from the following file: