Method | Description | |
---|---|---|
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 ( ) |
Method | Description | |
---|---|---|
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 ) |
public static canAutoUpdate ( ) : boolean | ||
return | boolean |
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 |
return | array | directory name => true|false (is writable) |
public static dieIfDirectoriesNotWritable ( array $directoriesToCheck = null ) | ||
$directoriesToCheck | array | Array of directory names to check |
public static getAutoUpdateMakeWritableMessage ( ) : string | ||
return | string |
public static getCommandToChangeOwnerOfPiwikFiles ( ) : string | ||
return | string |
public static getErrorMessageMissingPermissions ( string $path ) : string | ||
$path | string | to the directory missing permissions |
return | string | Error message |
public static getFileIntegrityInformation ( ) : array(bool, | ||
return | array(bool, |