Does calling super.delete(stObj.objectid) not work on your extended CFC? You are extending a system type which already extends either types.cfc or versions.cfc (in most cases) so super should still work. I did that last week with a dmEvent object. (This is FC3) I extended dmEvent and overloaded the delete method and inside it called super.delete(stObj.objectid) and it worked fine.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ezra Parker Sent: Sunday, February 24, 2008 12:57 PM To: farcry-dev Subject: [farcry-dev] Calling Super in Extended System Types Firstly, hello to the list. I have run into a question that has me stumped, and I am hoping for some suggestions: In the FC4 site I am presently building, I have extended several of the core system types, and when attempting to override the delete method of dmImage, I am not sure how to call delete() on the abstract types CFC. In a custom type which directly extends types.cfc or versions.cfc, I would simply use: <cfset stReturn = super.delete(stObj.objectID) /> In the case of an extended system type, however, the base CFC is the specific system type CFC, not the abstract types CFC, so there is an additional level of inheritance, and super is pointing to the method I wish to replace. I could implement the standard CF solution of adding a function to the system type that calls super and then calling this function from the child, e.g.: <cfset stReturn = super.superDelete(stObj.objectID) /> This would require modifying the base CFCs, though, and I would rather not touch the core if I can avoid it. Is there a good way to work around this without hacking the core files? Thanks for any thoughts, -- Ezra Parker No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
