PHP 클래스 Piwik\Filechecks

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
canAutoUpdate ( ) : boolean Check if this installation can be auto-updated.
checkDirectoriesWritable ( array $directoriesToCheck ) : array Checks if directories are writable and create them if they do not exist.
dieIfDirectoriesNotWritable ( array $directoriesToCheck = null ) Checks that the directories Piwik needs write access are actually writable Displays a nice error page if permissions are missing on some directories
getAutoUpdateMakeWritableMessage ( ) : string Returns the help message when the auto update can't run because of missing permissions
getCommandToChangeOwnerOfPiwikFiles ( ) : string
getErrorMessageMissingPermissions ( string $path ) : string Returns friendly error message explaining how to fix permissions
getFileIntegrityInformation ( ) : array(bool, Get file integrity information (in PIWIK_INCLUDE_PATH).
getOwnerOfPiwikFiles ( )
getUser ( )
getUserAndGroup ( )

비공개 메소드들

메소드 설명
getMakeWritableCommand ( string $realpath ) : string Returns the help text displayed to suggest which command to run to give writable access to a file or directory
isModifiedPathValid ( $path )

메소드 상세

canAutoUpdate() 공개 정적인 메소드

For performance, we look for clues rather than an exhaustive test.
public static canAutoUpdate ( ) : boolean
리턴 boolean

checkDirectoriesWritable() 공개 정적인 메소드

Checks if directories are writable and create them if they do not exist.
public static checkDirectoriesWritable ( array $directoriesToCheck ) : array
$directoriesToCheck array array of directories to check - if not given default Piwik directories that needs write permission are checked
리턴 array directory name => true|false (is writable)

dieIfDirectoriesNotWritable() 공개 정적인 메소드

Checks that the directories Piwik needs write access are actually writable Displays a nice error page if permissions are missing on some directories
public static dieIfDirectoriesNotWritable ( array $directoriesToCheck = null )
$directoriesToCheck array Array of directory names to check

getAutoUpdateMakeWritableMessage() 공개 정적인 메소드

Returns the help message when the auto update can't run because of missing permissions
public static getAutoUpdateMakeWritableMessage ( ) : string
리턴 string

getCommandToChangeOwnerOfPiwikFiles() 공개 정적인 메소드

getErrorMessageMissingPermissions() 공개 정적인 메소드

Returns friendly error message explaining how to fix permissions
public static getErrorMessageMissingPermissions ( string $path ) : string
$path string to the directory missing permissions
리턴 string Error message

getFileIntegrityInformation() 공개 정적인 메소드

Get file integrity information (in PIWIK_INCLUDE_PATH).
public static getFileIntegrityInformation ( ) : array(bool,
리턴 array(bool,

getOwnerOfPiwikFiles() 공개 정적인 메소드

public static getOwnerOfPiwikFiles ( )

getUser() 공개 정적인 메소드

public static getUser ( )

getUserAndGroup() 공개 정적인 메소드

public static getUserAndGroup ( )