1 | <?php |
||
38 | class Typo3Version |
||
39 | { |
||
40 | /** |
||
41 | * @var integer $version |
||
42 | */ |
||
43 | private static $version = null; |
||
44 | |||
45 | /** |
||
46 | * Returns the TYPO3 version as integer |
||
47 | * |
||
48 | * @return integer |
||
49 | * @api |
||
50 | */ |
||
51 | protected static function getBranch() |
||
58 | |||
59 | /** |
||
60 | * Returns TRUE if the current TYPO3 version (or compatibility version) is compatible to the input version |
||
61 | * Notice that this function compares branches, not versions (4.0.1 would be > 4.0.0 although they use the same compat_version) |
||
62 | * |
||
63 | * @param string $branchNumberStr Minimum branch number required (format x.y / e.g. "4.0" NOT "4.0.0"!) |
||
64 | * @return bool Returns TRUE if this setup is compatible with the provided version number |
||
65 | * @todo Still needs a function to convert versions to branches |
||
66 | */ |
||
67 | public static function isVersion($branchNumberStr) |
||
71 | |||
72 | /** |
||
73 | * Returns TRUE if the current TYPO3 version (or compatibility version) is compatible to the input version |
||
74 | * Notice that this function compares branches, not versions (4.0.1 would be > 4.0.0 although they use the same compat_version) |
||
75 | * |
||
76 | * @param string $branchNumberStr Minimum branch number required (format x.y / e.g. "4.0" NOT "4.0.0"!) |
||
77 | * @return bool Returns TRUE if this setup is compatible with the provided version number |
||
78 | * @todo Still needs a function to convert versions to branches |
||
79 | */ |
||
80 | public static function isCompatVersion($branchNumberStr) |
||
84 | } |
||
85 |