TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
EnableFileService Class Reference

Static Public Member Functions

static isFirstInstallAllowed ()
 
static createInstallToolEnableFile ()
 
static removeInstallToolEnableFile ()
 
static removeFirstInstallFile ()
 
static installToolEnableFileExists ()
 
static checkInstallToolEnableFile ()
 
static isInstallToolEnableFilePermanent ()
 
static installToolEnableFileLifetimeExpired ()
 

Public Attributes

const INSTALL_TOOL_ENABLE_FILE_PATH = 'typo3conf/ENABLE_INSTALL_TOOL'
 
const FIRST_INSTALL_FILE_PATH = 'FIRST_INSTALL'
 
const INSTALL_TOOL_ENABLE_FILE_LIFETIME = 3600
 

Static Protected Member Functions

static extendInstallToolEnableFileLifetime ()
 
static getInstallToolEnableFilePath ()
 
static getFirstInstallFilePaths ()
 

Static Protected Attributes

static $sitePath = PATH_site
 

Detailed Description

Basic Service to check and create install tool files

Definition at line 20 of file EnableFileService.php.

Member Function Documentation

static checkInstallToolEnableFile ( )
static

Checks if the install tool file exists

Returns
bool

Definition at line 114 of file EnableFileService.php.

static createInstallToolEnableFile ( )
static

Creates the INSTALL_TOOL_ENABLE file

Returns
bool

Definition at line 61 of file EnableFileService.php.

References GeneralUtility\fixPermissions().

static extendInstallToolEnableFileLifetime ( )
staticprotected

Updates the last modification of the ENABLE_INSTALL_TOOL file

Returns
void

Definition at line 164 of file EnableFileService.php.

static getFirstInstallFilePaths ( )
staticprotected

Returns the paths to the FIRST_INSTALL files

Returns
array

Definition at line 194 of file EnableFileService.php.

static getInstallToolEnableFilePath ( )
staticprotected

Returns the path to the INSTALL_TOOL_ENABLE file

Returns
string

Definition at line 184 of file EnableFileService.php.

static installToolEnableFileExists ( )
static

Checks if the install tool file exists

Returns
bool

Definition at line 104 of file EnableFileService.php.

Referenced by SecurityStatusReport\getInstallToolProtectionStatus().

static installToolEnableFileLifetimeExpired ( )
static

Checks if the lifetime of the install tool file is expired

Returns
bool

Definition at line 150 of file EnableFileService.php.

Referenced by SecurityStatusReport\getInstallToolProtectionStatus().

static isFirstInstallAllowed ( )
static
Returns
bool

Definition at line 47 of file EnableFileService.php.

References Bootstrap\getInstance().

static isInstallToolEnableFilePermanent ( )
static

Checks if the install tool file should be kept

Returns
bool

Definition at line 134 of file EnableFileService.php.

Referenced by SecurityStatusReport\getInstallToolProtectionStatus().

static removeFirstInstallFile ( )
static

Removes the FIRST_INSTALL file

Returns
bool

Definition at line 89 of file EnableFileService.php.

static removeInstallToolEnableFile ( )
static

Removes the INSTALL_TOOL_ENABLE file

Returns
bool

Definition at line 79 of file EnableFileService.php.

Referenced by SecurityStatusReport\executeAdminCommand(), and SecurityStatusReport\getInstallToolProtectionStatus().

Member Data Documentation

$sitePath = PATH_site
staticprotected

Definition at line 42 of file EnableFileService.php.

const FIRST_INSTALL_FILE_PATH = 'FIRST_INSTALL'

Relative path to FIRST_INSTALL file

Definition at line 30 of file EnableFileService.php.

const INSTALL_TOOL_ENABLE_FILE_LIFETIME = 3600

Maximum age of ENABLE_INSTALL_TOOL file before it gets removed (in seconds)

Definition at line 35 of file EnableFileService.php.

Referenced by SecurityStatusReport\getInstallToolProtectionStatus().

const INSTALL_TOOL_ENABLE_FILE_PATH = 'typo3conf/ENABLE_INSTALL_TOOL'

Relative path to ENABLE_INSTALL_TOOL file

Definition at line 25 of file EnableFileService.php.

Referenced by SecurityStatusReport\getInstallToolProtectionStatus().