root/trunk/UPGRADE

Revision 2477, 7.9 kB (checked in by tof, 3 months ago)

Fixed #844 - Upgraded to TinyMCE 3.1.0.1

  • Property svn:keywords set to Id
Line 
1
2         Upgrading Instructions for PRADO Framework v3.1.3
3         =================================================
4
5!!!IMPORTANT!!!
6
7The following upgrading instructions are cumulative. That is,
8if you want to upgrade from version A to version C and there is
9version B between A and C, you need to following the instructions
10for both A and B.
11
12Upgrading from v3.1.2
13---------------------
14- The Translation configuration now also accepts type 'Database' to
15  ease the setup of DB base translation. A valid ConnectionID has to
16  be supplied in the source parameter:
17  <translation type="Database" source="db1" autosave="true" cache="false" />
18  Type 'MySQL' can still be used but is deprecated and might be removed
19  in a later release.
20- TinyMCE (used by THtmlArea component) has been upgraded to version 3.1.0.1.
21  Since the 3.X branch of TinyMCE has a different API than 2.X, you should
22  upgrade your Customs Plugins if you use any.
23  See http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide for more information.
24
25
26Upgrading from v3.1.1
27---------------------
28- The RELATIONS type declaration in Active Record classes for Many-to-Many using
29  an association table was change from "self::HAS_MANY" to "self::MANY_TO_MANY".
30  E.g. change
31     'albums' => array(self::HAS_MANY, 'Artist', 'album_artists')
32  to
33     'albums' => array(self::MANY_TO_MANY, 'Artist', 'album_artists')
34- Active Record no longer automatically adds/removes/updates related objects.
35- 'Raw' mode for TCheckboxList and TRadioButtonList (and their active counter parts) now render
36  a surrounding <span> tag to allow client scripts to identify them with the ClientId. You may
37  have to check your CSS.
38
39
40Upgrading from v3.1.0
41---------------------
42- The RELATIONS declaration in Acive Record classes is changed from
43  "protected static $RELATIONS" to "public static $RELATIONS".
44- IFeedContentProvider adds a new method: getContentType(). This affects any
45  class implementing this interface.
46- TUrlMapping now only uses the PATH_INFO part of URL for matching, and the matching
47  is for the whole PATH_INFO.
48- IUserManager adds two new methods: getUserFromCookie() and saveUserToCookie().
49  This affects classes that implements this interface and does not extend from
50  TUserManager.
51- The order of application lifecycles is changed. The loadState and loadStateComplete
52  are moved to right after onBeginRequest.
53- TDropDownList will be in an unselected state if no initial selection is specified.
54  That is, its SelectedIndex will be -1. Previously, the first item will be considered as selected.
55
56Upgrading from v3.1b
57--------------------
58- Comment tag <!-- ... ---> (introduced in v3.1a) is changed to <!--- ... --->
59- When TDataList.RepeatLayout is Raw, the items will render <div> instead of <span>
60- TActiveRecord finder methods will always return a new object instance (identity mapping was removed).
61- TActiveRecord::findBySql() will return an object rather than an array
62- TActiveRecord::findAllBySql() will return an array of objects.
63
64Upgrading from v3.1a
65---------------------
66- The signature of TActiveRecord::finder() is changed. This affects
67  all TActiveRecord-descendant classes that override this method.
68  Please use the following code to override the method:
69        public static function finder($className=__CLASS__)
70        {
71                return parent::finder($className);
72        }
73
74- The way to specify the table name for an active record class is changed.
75  Previously, it used the static class member '_tablename'.
76  Now it uses class constant as follows:
77    class UserRecord extends TActiveRecord
78    {
79        const TABLE='users_table';
80    }
81
82- Changed TActiveRatingList's javascript control class
83  name from "Prado.WebUI.TRatingList" to "Prado.WebUI.TActiveRatingList".
84
85- PRADO's javascript library locations moved from Web/Javascripts/xxx to Web/Javascripts/source/xxx
86
87- IPostBackDataHandler added a new method getDataChanged(). Any control
88  implementing this interface will be required to implement this new method.
89
90Upgrading from v3.0.x
91---------------------
92- Validators ClientSide.OnSuccess becomes ClientSide.OnValidationSuccess,
93- Validators ClientSide.OnError becomes ClientSide.OnValidationError,
94- Validator OnSuccess event becomes OnValidationSuccess.
95- Validator OnError event becomes OnValidationError.
96- Content enclosed in <!-- --> is now parsed as normal template content.
97  Previously, it was not parsed and was rendered as is.
98
99Upgrading from v3.0.7
100---------------------
101
102Upgrading from v3.0.6
103---------------------
104
105Upgrading from v3.0.5
106---------------------
107- TRepeater does not render <span> anymore for empty item template.
108- constructUrl() now encodes ampersand by default. This should have minimal
109  impact on any existing PRADO applications, though.
110- TDataGrid does not generate default table styles. This may affect
111  the appearance of existing PRADO applications that use TDataGrid.
112- If TUrlMapping is used, you need to set the UrlManager property of
113  THttpRequest to the module ID of TUrlMapping.
114- TJavascriptLogger toggle key is changed from ALT-D to ALT-J.
115   Use the ToggleKey property chanage to a different key.
116- Javascript Library rico was REMOVED.
117
118Upgrading from v3.0.4
119---------------------
120- TFileUpload::saveAs() will return false instead of raising an exception
121  if it encounters any error.
122- TDropDownListColumn.DataField is renamed to DataTextField and
123  DataFormatString is renamed to DataTextFormatString.
124  A new property named DataValueField is added.
125
126Upgrading from v3.0.3
127---------------------
128- The 'Static' value is changed to 'Fixed' for the Display property of
129  all validators as well as TValidationSummary, due to conflict with PHP keywords.
130- The 'List' value is changed to 'SimpleList' for TValidationSummary.DisplayMode.
131- The 'List' value is changed to 'DropDownList' for TPager.Mode
132- This change affects existing client-side javascript handlers such as
133  <com:TRequiredFieldValidator ClientSide.OnSuccess="xxx" />
134  All ClientSide javascript event handlers (such as ClientSide.OnSuccess)
135  are by default wrapped within the function block.
136       function(sender, parameter){ // handler code }
137  You may override this behaviour by providing your own javascript statement block
138  as "javascript:MyHandlerFunction", e.g. ClientSide.OnSuccess="javascript:MyHandlerFunction"
139  or ClientSide.OnSuccess="javascript:function(validator,sender){ ... }"
140
141
142Upgrading from v3.0.2
143---------------------
144- The minimum PHP version required is raised to 5.1.0 and above.
145  If your server is installed with a lower version of PHP, you will
146  have to upgrade it in order to run PRADO applications.
147- The signature of TControl::broadcastEvent() is changed from
148  broadcastEvent($sender,TBroadCastEventParameter $param) to
149  broadcastEvent($name,$sender,$param).
150  This makes the call to broadcastEvent() to be consistent with raiseEvent().
151
152Upgrading from v3.0.1
153---------------------
154- Postback enabled control will always disable default client-side browser action.
155  This is due to google toolbar's interference of event stopping scheme.
156  This modification should only affect user-derived postback javascripts.
157
158Upgrading from v3.0.0
159---------------------
160- URL format is modified when THttpRequest.UrlFormat=='Path'.
161  This modification affects both the URLs generated by calling constructUrl()
162  and the URLs understood by PRADO. In particular, PRADO now understands
163  the following URL format:
164  /index.php/ServiceID,ServiceParam/Name1,Value1/Name2,Value2/...
165  In v3.0.0, the above URL is written as:
166  /index.php/ServiceID/ServiceParam/Name1/Value1/Name2/Value2/...
167- TControl::onBubbleEvent() has been changed to TControl::bubbleEvent().
168  This change only affects user controls that override this method.
169
170Upgrading from v2.x and v1.x
171----------------------------
172PRADO v3.x is not backward compatible with v2.x and v1.x.
Note: See TracBrowser for help on using the browser.