#include <LinkUtility.h>
|
| | UpdateLink (TextTemplate *pSource, const String &strDetailPage, const String &strToEdit, const String &strThisEnc, const String &strListEnc) |
| void | assign (TextTemplate *pDest, _CONST SQLFields &fields, const Session &session, const String &strMessageID, const String &strToList, const MessageTree &mt, const MessageTree::Position &pos) |
Definition at line 83 of file LinkUtility.h.
◆ UpdateLink()
| UpdateLink::UpdateLink |
( |
TextTemplate * | pSource, |
|
|
const String & | strDetailPage, |
|
|
const String & | strToEdit, |
|
|
const String & | strThisEnc, |
|
|
const String & | strListEnc ) |
Definition at line 176 of file LinkUtility.cpp.
183{
185
192
199
203 __pNADD = &(*__pSource)[L
"N_ADD"];
204 __pADD->assign(L
"DETAIL", strDetailPage);
205 __pADD->assign(L
"EDIT", strToEdit);
206 __pADD->assign(L
"_THIS", strThisEnc);
207 __pADD->assign(L
"_LIST", strListEnc);
208 }
212 __pREPLY->assign(L
"DETAIL", strDetailPage);
213 __pREPLY->assign(L
"EDIT", strToEdit);
214 __pREPLY->assign(L
"_THIS", strThisEnc);
215 __pREPLY->assign(L
"_LIST", strListEnc);
216 }
220 __pAGREE->assign(L
"EDIT", strToEdit);
221 __pAGREE->assign(L
"_THIS", strThisEnc);
222 __pAGREE->assign(L
"_LIST", strListEnc);
223 }
230 }
234 __pMODIFY->assign(L
"DETAIL", strDetailPage);
238 }
245 }
246 }
247}
TextTemplate * __pDISAGREE
TextTemplate * __pNDISAGREE
TextTemplate * __pNMODIFY
TextTemplate * __pNDELETE
◆ assign()
Definition at line 249 of file LinkUtility.cpp.
258{
260
264
265 pDest->assign(L
"_ADD", *
__pNADD);
266 }
269
271 }
274
276 }
279
281 }
284
286 }
289
291 }
292 }
293 else {
295 __pADD->assign(L
"PARENT_ID", fields.byName(L
"PARENT_ID").asString());
296 pDest->assign(L
"_ADD", *
__pADD);
297 }
298
301 int nChild = fields.byName(L"NCHILD").asInteger();
302 if (nChild == mt.
width()) {
303
305 }
307
309 }
310 else {
311 __pREPLY->assign(L
"MESSAGE_ID", strMessageID);
312 pDest->assign(L
"_REPLY", *
__pREPLY);
313 }
314 }
315
316 int nUserID = fields.byName(L"USER_ID").asInteger();
321
323 }
324
327
329 }
330 }
331 else {
332 SQLField& VOTE_END = fields.byName(L"VOTE_END");
333 if (!VOTE_END.isNull() &&
335 ) {
338
340 }
343
345 }
346 }
347 else {
349 __pAGREE->assign(L
"MESSAGE_ID", strMessageID);
350 pDest->assign(L
"_AGREE", *
__pAGREE);
351 }
355 }
356 }
357 }
358 }
361 __pMODIFY->assign(L
"MESSAGE_ID", strMessageID);
363 }
364 else {
366
368 }
369 }
372 __pDELETE->assign(L
"MESSAGE_ID", strMessageID);
374 }
375 else {
377
379 }
380 }
381 }
382 }
383}
#define __DCL_ASSERT(expr)
static DateTime getCurrentLocalTime()
◆ __pADD
◆ __pAGREE
◆ __pDELETE
◆ __pDISAGREE
◆ __pMODIFY
◆ __pNADD
◆ __pNAGREE
◆ __pNDELETE
◆ __pNDISAGREE
◆ __pNMODIFY
◆ __pNREPLY
◆ __pREPLY
◆ __pSource
The documentation for this class was generated from the following files: