new php5 connector
|Reported by:||tedivm||Owned by:|
|Component:||Server : PHP||Version:|
Description of changes:
Continued with the update to proper php5
- Removed depreciated 'var' tag from properties, added proper keywords.
- Cleaned up the User Agent code
- Separated out the public methods from the helper methods
Removed EncodeConfig method and replaced all occurrences of it with the php urlencode function
Optimized how the strings were formed (concatenating as opposed to embedding, which tends to run slower)
Refractored some odd if/else conditionals to use the ternary conditional instead
Added an 'ID' property so developers can specify the ID instead of using the InstanceName
The biggest thing about this is that I made changes so it matched the PHP5 OOP structure. PHP5 is backwards compatible with PHP4, so this class still worked, but work on PHP6 is underway and I doubt it will be backwards compatible all the way back to PHP4 so I brought everything up to date.
There were a couple of other changes, mostly to just make more efficient use of PHP. All the methods still return the same information (except for EncodeConfig, which wasn't really called by the public anyways). Default behavior is still the same- if a developer doesn't specify the ID, for instance, it still defaults to the InstanceName. I was able to drop the file into a couple of different places where I've used FCKeditor without having any issues.
Change History (7)
Changed 9 years ago by tedivm
comment:5 Changed 9 years ago by tedivm
- Resolution fixed deleted
- Status changed from closed to reopened