‪TYPO3CMS  11.5
TYPO3\CMS\Core\Information\Typo3Version Class Reference

Public Member Functions

 __construct ()
 
 getVersion ()
 
 getBranch ()
 
int getMajorVersion ()
 
 __toString ()
 

Protected Attributes

const VERSION = '11.5.39-dev'
 
const BRANCH = '11.5'
 

Detailed Description

Definition at line 20 of file Typo3Version.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Information\Typo3Version::__construct ( )

Define constants used up until TYPO3 v10, this constructor can be removed in TYPO3 v12.

Definition at line 28 of file Typo3Version.php.

References TYPO3\CMS\Core\Information\Typo3Version\getBranch(), and TYPO3\CMS\Core\Information\Typo3Version\getVersion().

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\Information\Typo3Version::__toString ( )

◆ getBranch()

TYPO3\CMS\Core\Information\Typo3Version::getBranch ( )

◆ getMajorVersion()

int TYPO3\CMS\Core\Information\Typo3Version::getMajorVersion ( )

Get 'major version' of version, e.g., '7' from '7.3.0'

Returns
‪int Major version, e.g., '7'

Definition at line 53 of file Typo3Version.php.

◆ getVersion()

Member Data Documentation

◆ BRANCH

const TYPO3\CMS\Core\Information\Typo3Version::BRANCH = '11.5'
protected

Definition at line 23 of file Typo3Version.php.

◆ VERSION

const TYPO3\CMS\Core\Information\Typo3Version::VERSION = '11.5.39-dev'
protected

Definition at line 22 of file Typo3Version.php.