-
Notifications
You must be signed in to change notification settings - Fork 1
/
package-ncPropelChangeLogBehaviorPlugin.xml
317 lines (309 loc) · 10.5 KB
/
package-ncPropelChangeLogBehaviorPlugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.4.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>[automatic]</name>
<channel>pear.symfony-project.com</channel>
<summary>Behavior for change tracking on Propel objects.</summary>
<description>Behavior for change tracking on Propel objects.</description>
<lead>
<name>José Nahuel CUESTA LUENGO</name>
<user>ncuesta</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<lead>
<name>Matías Alejandro TORRES</name>
<user>mtorres</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>[automatic]</date>
<version>
<release>[automatic]</release>
<api>[automatic]</api>
</version>
<stability>
<release>[automatic]</release>
<api>[automatic]</api>
</stability>
<license>[automatic]</license>
<notes>-</notes>
<contents>[automatic]</contents>
<dependencies>
<required>
<php>
<min>5.1.0</min>
</php>
<pearinstaller>
<min>1.4.1</min>
</pearinstaller>
<package>
<name>symfony</name>
<channel>pear.symfony-project.com</channel>
<min>1.2.0</min>
<max>1.3.0</max>
<exclude>1.3.0</exclude>
</package>
</required>
</dependencies>
<phprelease>
</phprelease>
<changelog>
<release>
<version>
<release>0.1.0</release>
<api>0.1.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Added to symfony</notes>
</release>
<release>
<version>
<release>0.1.1</release>
<api>0.1.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Minor addition: getChangeLogRoute method</notes>
</release>
<release>
<version>
<release>0.1.1</release>
<api>0.1.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Minor addition: getChangeLogRoute method; Fixed typo</notes>
</release>
<release>
<version>
<release>0.1.2</release>
<api>0.1.2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Minor addition: getChangeLogRoute method; Fixed typo</notes>
</release>
<release>
<version>
<release>0.1.2</release>
<api>0.1.2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Minor addition: getChangeLogRoute method; Fixed typo</notes>
</release>
<release>
<version>
<release>0.1.2</release>
<api>0.1.2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-28</date>
<notes>Minor addition: getChangeLogRoute method; Fixed typo</notes>
</release>
<release>
<version>
<release>0.1.3</release>
<api>0.1.3</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-04-29</date>
<notes>Bug fixed when dealing with objects with multiple primary key</notes>
</release>
<release>
<version>
<release>0.1.4</release>
<api>0.1.4</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-07-17</date>
<notes>
- ncChangeLogConfigHandle class added to access the app config in a uniform way.
- Translation is now working.
- Translation of table names and fields can be now be achieved by activating
'translation_use_i18n' key in the app.yml and adding translation catalogues
under the i18n/tables/ directory. The name of the catalogues must be equal to the table name.
- Also translation of the text rendered by the classes of the plugin can also be translated.
the catalogues for this must be in plugin_dir/ncPropelChangeLogBehavior/i18n/nc_change_log_behavior.CULTURE.xml
- The key 'username_attribute' does not work anymore. Now instead of getting the username from the user's attributes,
the username is retrieved by calling a method of the sfUser. The method is specified in 'username_method' key. Read the README.
- The date format is now specified in the app.yml. Key: 'date_format'.
</notes>
</release>
<release>
<version>
<release>0.2.0</release>
<api>0.2.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-08-02</date>
<notes>
- The changes are translated *after* they are saved.
- Added configuration keys in app.yml
- date_format:
- date_time_format:
- time_format:
These are used to,
1) Render the 'created by' field in the ncChangeLogEntry
2) Save the time/date columns with the desired format.
In next versions this will change, date/time columns
will be saved in standard format and will be retrieved with this formats.
You can get an adapter of the ncChangeLogEntry by using the 'getAdapter' method.
This adapters have a uniform interface for accessing the changes.
Interfaces of classes,
ncChangeLogEntry
- isOperation
- getOperationString
- getObject
- getObjectClassName
- getObjectPeerClassName
- getObjectTableName
- getObjectPrimaryKey
- getObjectChanges
- getRelatedTablesChangeLogEntries
- getAdapter
ncChangeLogAdapter
These classes implement the Iterator to iterate over the changes made.
Actually, only the Updation operations return a non empty array.
Also implements the Countable and ArrayAccess interface.
This methods return the same values as the ncChangeLogEntry 'getObject*' methods.
getChangeLog
Returns an array of ncChangeLogUpdateChange. (just for updates)
getClassName
getTableName
getPrimaryKey
getEntry
This methods returns the translated values
renderClassName
renderCreatedAt
renderUsername
renderOperationType
This methods use the formatter class to render the operation.
render: Render the detail in a 'show' action way.
renderList: Render a brief description in a 'list' action way.
Methods use for translation
tableTranslate
classTranslate
translate
ncChangeLogPluginTranslate
</notes>
</release>
<release>
<version>
<release>0.2.1</release>
<api>0.2.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-08-06</date>
<notes>
- ncChangeLogEntryPeer::getChangeLogOfObject now retrieves adapter instances.
</notes>
</release>
<release>
<version>
<release>0.2.2</release>
<api>0.2.2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-08-12</date>
<notes>
- ncClassFinder has only Peer classes in its class dictionary.
- getRelatedChangeLog has been renamed to get1NRelatedChangeLog
- getNNRelatedChangeLog has been added. It looks for related changes in all the tables.
</notes>
</release>
<release>
<version>
<release>0.2.3</release>
<api>0.2.3</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-08-24</date>
<notes>
- Added ncPropelChangeLogBehavior:migrateV1toV2 task
</notes>
</release>
<release>
<version>
<release>0.2.4</release>
<api>0.2.4</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-09-13</date>
<notes>
- Minor fixes
- Fixed "Not showing old values for updated fields".
</notes>
</release>
<release>
<version>
<release>0.2.5</release>
<api>0.2.5</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.com/license">MIT</license>
<date>2009-12-31</date>
<notes>
- Bug fix version
- The plugin now shows foreign keys by retrieving the objects and echoing its '_toString' method.
- Each time the plugin renders a new or an old value, a signal is emitted with the name 'table_name.render_field_name' . This gives the possibility to render the value in a different way.
</notes>
</release>
</changelog>
</package>