Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Insert Multiple, Delete Multiple and parent keys
Re: Insert Multiple, Delete Multiple and parent keys [message #1221 is a reply to message #1220] Mon, 14 January 2008 05:12 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2369
Registered: April 2006
Location: Surrey, UK
Senior Member
No, you do not call an UPDATE5 task from a '_cm_???' method, you have an UPDATE5 task which accesses a class which has code in a '_cm_???' method.

The whole purpose of the collection of '_cm_???' methods is that by default any task will perform a single operation on a single database table, but within the processing flow a '_cm_???' method may be called to perform some additional processing. By default all '_cm_???' methods (as defined in the superclass) are empty, which means that no additional processing will be performed.

This default behaviour can be changed at any time by putting whatever code you want inside the relevant '_cm_???' method inside your database table class, which means that at runtime the non-empty method will be called in preference to the empty method.

For example, if you wish to perform some additional processing after a STUDENT record is inserted, you put some code in the '_cm_post_insertRecord()' method of the STUDENT class. This code may instantiate objects on any table class, and may call whatever methods you like on the objects. This will enable you to read/write/update/delete any number of records from any number of tables. An example of this is shown in http://www.tonymarston.net/php-mysql/functions-and-variables .html#notes._cm_post_insertrecord.



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Redirect or Link
Next Topic: creating list items
Goto Forum:
  


Current Time: Mon Nov 25 11:05:26 EST 2024

Total time taken to generate the page: 0.00988 seconds