TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Service\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

◆ checkInstallToolEnableFile()

static TYPO3\CMS\Install\Service\EnableFileService::checkInstallToolEnableFile ( )
static

Checks if the install tool file exists

Returns
bool

Definition at line 114 of file EnableFileService.php.

◆ createInstallToolEnableFile()

static TYPO3\CMS\Install\Service\EnableFileService::createInstallToolEnableFile ( )
static

Creates the INSTALL_TOOL_ENABLE file

Returns
bool

Definition at line 61 of file EnableFileService.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixPermissions().

◆ extendInstallToolEnableFileLifetime()

static TYPO3\CMS\Install\Service\EnableFileService::extendInstallToolEnableFileLifetime ( )
staticprotected

Updates the last modification of the ENABLE_INSTALL_TOOL file

Returns
void

Definition at line 164 of file EnableFileService.php.

◆ getFirstInstallFilePaths()

static TYPO3\CMS\Install\Service\EnableFileService::getFirstInstallFilePaths ( )
staticprotected

Returns the paths to the FIRST_INSTALL files

Returns
array

Definition at line 194 of file EnableFileService.php.

◆ getInstallToolEnableFilePath()

static TYPO3\CMS\Install\Service\EnableFileService::getInstallToolEnableFilePath ( )
staticprotected

Returns the path to the INSTALL_TOOL_ENABLE file

Returns
string

Definition at line 184 of file EnableFileService.php.

◆ installToolEnableFileExists()

static TYPO3\CMS\Install\Service\EnableFileService::installToolEnableFileExists ( )
static

Checks if the install tool file exists

Returns
bool

Definition at line 104 of file EnableFileService.php.

Referenced by TYPO3\CMS\Install\Controller\ToolController\execute(), and TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().

◆ installToolEnableFileLifetimeExpired()

static TYPO3\CMS\Install\Service\EnableFileService::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 TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().

◆ isFirstInstallAllowed()

static TYPO3\CMS\Install\Service\EnableFileService::isFirstInstallAllowed ( )
static
Returns
bool

Definition at line 47 of file EnableFileService.php.

References TYPO3\CMS\Core\Core\Bootstrap\getInstance().

◆ isInstallToolEnableFilePermanent()

static TYPO3\CMS\Install\Service\EnableFileService::isInstallToolEnableFilePermanent ( )
static

Checks if the install tool file should be kept

Returns
bool

Definition at line 134 of file EnableFileService.php.

Referenced by TYPO3\CMS\Install\Controller\ToolController\execute(), and TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().

◆ removeFirstInstallFile()

static TYPO3\CMS\Install\Service\EnableFileService::removeFirstInstallFile ( )
static

Removes the FIRST_INSTALL file

Returns
bool

Definition at line 89 of file EnableFileService.php.

◆ removeInstallToolEnableFile()

static TYPO3\CMS\Install\Service\EnableFileService::removeInstallToolEnableFile ( )
static

Member Data Documentation

◆ $sitePath

TYPO3\CMS\Install\Service\EnableFileService::$sitePath = PATH_site
staticprotected

Definition at line 42 of file EnableFileService.php.

◆ FIRST_INSTALL_FILE_PATH

const TYPO3\CMS\Install\Service\EnableFileService::FIRST_INSTALL_FILE_PATH = 'FIRST_INSTALL'

Relative path to FIRST_INSTALL file

Definition at line 30 of file EnableFileService.php.

◆ INSTALL_TOOL_ENABLE_FILE_LIFETIME

const TYPO3\CMS\Install\Service\EnableFileService::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 TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().

◆ INSTALL_TOOL_ENABLE_FILE_PATH

const TYPO3\CMS\Install\Service\EnableFileService::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 TYPO3\CMS\Install\Report\SecurityStatusReport\getInstallToolProtectionStatus().