J2.5

Difference between revisions of "Potential backward compatibility issues in Joomla 2.5 and Joomla Platform 11.4"

From Joomla! Documentation

m (changed framework category to platform category as platform category exists)
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
This documents track potential backward compatibility issues for Joomla 1.7 and Joomla Platform 11.1 which will be included in Joomla 1.7. Listed are issues which potentially breaks extensions and newly deprecated APIs.
+
{{RightTOC}}This documents track potential backward compatibility issues for Joomla 2.5 and Joomla Platform 11.4 which is included in Joomla 2.5. Listed are issues which potentially break extensions and newly deprecated APIs.
 
Please help making this document complete.
 
Please help making this document complete.
  
Line 6: Line 6:
 
Backwards compatibility issues were also tracked for Joomla 1.7: [[Potential backward compatibility issues in Joomla 1.7 and Joomla Platform 11.1]]
 
Backwards compatibility issues were also tracked for Joomla 1.7: [[Potential backward compatibility issues in Joomla 1.7 and Joomla Platform 11.1]]
  
= Platform =
+
= CMS Libraries and Platform Version=
  
 
== JFTP ==
 
== JFTP ==
Line 15: Line 15:
  
 
== JRequest ==
 
== JRequest ==
* JRequest::_cleanArray has been removed
+
* JRequest::_cleanArray() has been removed
  
 
== JArchive ==
 
== JArchive ==
Line 42: Line 42:
 
== Plug-in events ==
 
== Plug-in events ==
 
*onPrepareUserProfileData has been removed. Instead respond to onContentPrepareData with a context of com_users.profile
 
*onPrepareUserProfileData has been removed. Instead respond to onContentPrepareData with a context of com_users.profile
 +
 +
== JUser ==
 +
The Associative array of user groups for a user no longer contains the group name, but only the group id in both the key and value.
 +
The names of groups for a user can be obtained from getGroupsByUser in JAccess.
  
 
= CMS =
 
= CMS =
 +
== Plugin Extension Manifest for Update Servers ==
 +
(as of 1.7.3) The xml extension manifest for plugins on update servers must specify the client <client>0</client> in the <update> sections. Example:
 +
 +
<type>plugin</type>
 +
<folder>content</folder>
 +
<client>0</client>
 +
 +
[[Category:Compatibility]]
 +
[[Category:Development]]
 +
[[Category:Platform]]

Revision as of 13:13, 29 August 2012

The "J2.5" namespace is a namespace scheduled to be archived. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

This documents track potential backward compatibility issues for Joomla 2.5 and Joomla Platform 11.4 which is included in Joomla 2.5. Listed are issues which potentially break extensions and newly deprecated APIs.

Please help making this document complete.

The base of this comparison is Joomla 1.7/Platform 11.2.

Backwards compatibility issues were also tracked for Joomla 1.7: Potential backward compatibility issues in Joomla 1.7 and Joomla Platform 11.1

CMS Libraries and Platform Version[edit]

JFTP[edit]

  • All class members except JFTP::$instances have become private

JError[edit]

  • JError::$_error has become protected

JRequest[edit]

  • JRequest::_cleanArray() has been removed

JArchive[edit]

  • The following class member have become private:
    • JArchiveGzip:: $_flags
    • JArchiveGzip:: $_data
    • JArchiveTar:: $_types
    • JArchiveTar:: $_flags
    • JArchiveTar:: $_data
    • JArchiveTar:: $_metadata
    • JArchiveZip:: $_methods
    • JArchiveZip:: $_ctrlDirHeader
    • JArchiveZip:: $_ctrlDirEnd
    • JArchiveZip:: $_fileHeader
    • JArchiveZip:: $_data

JSimpleXML[edit]

  • The following class members have become private:
    • JSimpleXML:: $_parser
    • JSimpleXML:: $_xml
    • JSimpleXML:: $_stack

JComponentHelper[edit]

  • In JComponentHelper::renderComponent the execution of the component is moved to the new function JComponentHelper::executeComponent. This means that a component cannot change or use any of the (internal) variables of renderComponent that might be used by the function later on, like $task or $option. Solution is to get the values, via JRequest, in the component itself.

Plug-in events[edit]

  • onPrepareUserProfileData has been removed. Instead respond to onContentPrepareData with a context of com_users.profile

JUser[edit]

The Associative array of user groups for a user no longer contains the group name, but only the group id in both the key and value. The names of groups for a user can be obtained from getGroupsByUser in JAccess.

CMS[edit]

Plugin Extension Manifest for Update Servers[edit]

(as of 1.7.3) The xml extension manifest for plugins on update servers must specify the client <client>0</client> in the <update> sections. Example:

<type>plugin</type>
<folder>content</folder>
<client>0</client>