[TYPO3-ect] RFC: Result Browser Service for lib/div - part 1 + 2/ interface-version
Daniel Brüßler
info at -remove-patchworking.de
Thu Jul 19 19:45:04 CEST 2007
Hello Elmar,
>> == version of the interface ==
>> for me versioning is important:
>>
>> ---
>> required getInterfaceVersion
>
> O.K. That's added.
>
> Is there a standard how interfaces should be versionized?
great!
PEAR has the human-readable syntax "1.2.3" but for if-comparisons an
integer is much better -- like the TYPO3 compatibility-version:
$TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] =
array(
'version' => 4000000,
);
So an interface 1.4.327 is no problem:
if ($s.getInterfaceVersion() >= 1004000){
# OK
} else {
# very old
}
I prefer that way.
kind regards
Daniel
More information about the TYPO3-team-extension-coordination
mailing list