PHP 클래스 ElggRewriteTester, Elgg

Test if URL rewriting is working.
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$htaccessIssue
$rewriteTestPassed
$serverSupportsRemoteRead
$webserver

공개 메소드들

메소드 설명
__construct ( ) Set the webserver as unknown.
createHtaccess ( string $url ) : boolean Create Elgg's .htaccess file or confirm that it exists
guessSubdirectory ( string $url ) : string | boolean Guess if url contains subdirectory or not.
guessWebServer ( ) : string Guess the web server from $_SERVER['SERVER_SOFTWARE']
run ( string $url, string $path ) : array Run the rewrite test and return a status array
runLocalhostAccessTest ( ) : boolean Check whether the site homepage can be fetched via curl
runRewriteTest ( string $url ) : boolean Hit the rewrite test URL to determine if the rewrite rules are working

보호된 메소드들

메소드 설명
returnStatus ( string $url ) : array Create the status array required by the ElggInstaller

비공개 메소드들

메소드 설명
fetchUrl ( string $url ) : string Fetch a URL

메소드 상세

__construct() 공개 메소드

Set the webserver as unknown.
public __construct ( )

createHtaccess() 공개 메소드

Create Elgg's .htaccess file or confirm that it exists
public createHtaccess ( string $url ) : boolean
$url string URL of rewrite test
리턴 boolean

guessSubdirectory() 공개 메소드

Guess if url contains subdirectory or not.
public guessSubdirectory ( string $url ) : string | boolean
$url string Rewrite test URL
리턴 string | boolean Subdirectory string with beginning and trailing slash or false if were unable to determine subdirectory or pointing at root of domain already

guessWebServer() 공개 정적인 메소드

Guess the web server from $_SERVER['SERVER_SOFTWARE']
public static guessWebServer ( ) : string
리턴 string

returnStatus() 보호된 메소드

Create the status array required by the ElggInstaller
protected returnStatus ( string $url ) : array
$url string Rewrite test URL
리턴 array

run() 공개 메소드

Run the rewrite test and return a status array
public run ( string $url, string $path ) : array
$url string URL of rewrite test
$path string Root directory of Elgg with trailing slash
리턴 array

runLocalhostAccessTest() 공개 메소드

Check whether the site homepage can be fetched via curl
public runLocalhostAccessTest ( ) : boolean
리턴 boolean

runRewriteTest() 공개 메소드

Hit the rewrite test URL to determine if the rewrite rules are working
public runRewriteTest ( string $url ) : boolean
$url string Rewrite test URL
리턴 boolean

프로퍼티 상세

$htaccessIssue 보호되어 있는 프로퍼티

protected $htaccessIssue

$rewriteTestPassed 보호되어 있는 프로퍼티

protected $rewriteTestPassed

$serverSupportsRemoteRead 보호되어 있는 프로퍼티

protected $serverSupportsRemoteRead

$webserver 보호되어 있는 프로퍼티

protected $webserver