TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConfigurationStatus Class Reference
Inheritance diagram for ConfigurationStatus:
StatusProviderInterface

Public Member Functions

 getStatus ()
 

Protected Member Functions

 getReferenceIndexStatus ()
 
 isMemcachedUsed ()
 
 getConfiguredMemcachedServers ()
 
 getMemcachedConnectionStatus ()
 
 getDeprecationLogStatus ()
 
 getCreatedFilesWorldWritableStatus ()
 
 getCreatedDirectoriesWorldWritableStatus ()
 
 getDeprecationLogFileLink ()
 
 executeAdminCommand ()
 

Protected Attributes

 $deprecationLogFileSizeWarningThreshold = 10485760
 
 $deprecationLogFileSizeErrorThreshold = 104857600
 
 $backPath = '../'
 

Detailed Description

Performs some checks about the install tool protection status

Definition at line 22 of file ConfigurationStatus.php.

Member Function Documentation

executeAdminCommand ( )
protected

Executes admin commands.

Currently implemented commands are:

  • Remove deprecation log file
Returns
void

Definition at line 265 of file ConfigurationStatus.php.

References GeneralUtility\_GET().

Referenced by ConfigurationStatus\getStatus().

getConfiguredMemcachedServers ( )
protected

Gets the configured memcached server connections.

Returns
array An array of configured memcached server connections.

Definition at line 109 of file ConfigurationStatus.php.

References $GLOBALS.

Referenced by ConfigurationStatus\getMemcachedConnectionStatus(), and ConfigurationStatus\isMemcachedUsed().

getCreatedDirectoriesWorldWritableStatus ( )
protected

Warning, if folderCreateMask has write bit for 'others' set.

Returns
The writable status for 'others'

Definition at line 230 of file ConfigurationStatus.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Referenced by ConfigurationStatus\getStatus().

getCreatedFilesWorldWritableStatus ( )
protected

Warning, if fileCreateMask has write bit for 'others' set.

Returns
The writable status for 'others'

Definition at line 212 of file ConfigurationStatus.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Referenced by ConfigurationStatus\getStatus().

getDeprecationLogFileLink ( )
protected

Creates a link to the deprecation log file with the absolute path as the link text.

Returns
string Link to the deprecation log file

Definition at line 249 of file ConfigurationStatus.php.

References GeneralUtility\getDeprecationLogFileName(), and GeneralUtility\resolveBackPath().

Referenced by ConfigurationStatus\getDeprecationLogStatus().

getDeprecationLogStatus ( )
protected

Provides status information on the deprecation log, whether it's enabled and if so whether certain limits in file size are reached.

Returns
The deprecation log status.

Definition at line 179 of file ConfigurationStatus.php.

References $GLOBALS, GeneralUtility\formatSize(), ConfigurationStatus\getDeprecationLogFileLink(), GeneralUtility\getDeprecationLogFileName(), GeneralUtility\getIndpEnv(), and GeneralUtility\makeInstance().

Referenced by ConfigurationStatus\getStatus().

getMemcachedConnectionStatus ( )
protected

Checks whether TYPO3 can connect to the configured memcached servers.

Returns
An object representing whether TYPO3 can connect to the configured memcached servers

Definition at line 132 of file ConfigurationStatus.php.

References $GLOBALS, ConfigurationStatus\getConfiguredMemcachedServers(), and GeneralUtility\makeInstance().

Referenced by ConfigurationStatus\getStatus().

getReferenceIndexStatus ( )
protected

Checks if sys_refindex is empty.

Returns
An object representing whether the reference index is empty or not

Definition at line 72 of file ConfigurationStatus.php.

References $GLOBALS, $registry, $url, and GeneralUtility\makeInstance().

Referenced by ConfigurationStatus\getStatus().

getStatus ( )
isMemcachedUsed ( )
protected

Checks whether memcached is configured, if that's the case we assume it's also used.

Returns
bool TRUE if memcached is used, FALSE otherwise.

Definition at line 94 of file ConfigurationStatus.php.

References ConfigurationStatus\getConfiguredMemcachedServers().

Referenced by ConfigurationStatus\getStatus().

Member Data Documentation

$backPath = '../'
protected

Definition at line 43 of file ConfigurationStatus.php.

$deprecationLogFileSizeErrorThreshold = 104857600
protected

Definition at line 36 of file ConfigurationStatus.php.

$deprecationLogFileSizeWarningThreshold = 10485760
protected

Definition at line 29 of file ConfigurationStatus.php.