Hi there!
Currently i'm thinking about how to solve this problem:
if (t3lib_div::int _from_ver(phpve rsion())<500000 0) {
// php4
class tx_lib_object extends tx_lib_selfAwar eness {...}
//
} else {
// php5
class tx_lib_object extends tx_lib_selfAwar eness implements ArrayAccess, Iterator {...}
//
}
The question is now how to make this conditional "implements " in php?
Of cause i do not want to copy the code for both php versions and then
switch between the whole classes.
--
MfG, Christian Welzel aka Gawain@Regenbog en
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
Currently i'm thinking about how to solve this problem:
if (t3lib_div::int _from_ver(phpve rsion())<500000 0) {
// php4
class tx_lib_object extends tx_lib_selfAwar eness {...}
//
} else {
// php5
class tx_lib_object extends tx_lib_selfAwar eness implements ArrayAccess, Iterator {...}
//
}
The question is now how to make this conditional "implements " in php?
Of cause i do not want to copy the code for both php versions and then
switch between the whole classes.
--
MfG, Christian Welzel aka Gawain@Regenbog en
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
Comment