How to override a module function

Author Message

Jade Tremblay

Thursday 24 November 2005 7:16:57 am

Hello,

I'm looking for a way to extend an existing ezPublish module. (shop module) I would like to rewrite a single function (addtobasket) without modifing the original module. Is it possible to do that with an extension??

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Alexandre Abric

Thursday 24 November 2005 7:19:00 am

Hi,

I don't think this is possible. You would need to copy the entire module as an extension and then modify the function.

Jade Tremblay

Tuesday 29 November 2005 10:50:12 am

Is there anything that could be done with module's hook. What is the exact purpose of hooks?

I don't like the idea of copying the whole module's code. :( It's not upgrade wise!

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:25:23
Script start
Timing: Jan 18 2025 11:25:23
Module start 'layout'
Timing: Jan 18 2025 11:25:23
Module start 'content'
Timing: Jan 18 2025 11:25:24
Module end 'content'
Timing: Jan 18 2025 11:25:24
Script end

Main resources:

Total runtime1.1451 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.0547152.6250
Module start 'layout' 0.00640.0031 741.679739.4609
Module start 'content' 0.00941.1339 781.1406527.3438
Module end 'content' 1.14330.0018 1,308.48448.1563
Script end 1.1451  1,316.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3133160.0002
Check MTime0.00170.1470160.0001
Mysql Total
Database connection0.00170.151710.0017
Mysqli_queries1.093795.5098570.0192
Looping result0.00060.0547550.0000
Template Total1.111397.020.5557
Template load0.00230.199120.0011
Template processing1.109096.848520.5545
Template load and register function0.00010.009810.0001
states
state_id_array0.00100.089610.0010
state_identifier_array0.00140.124920.0007
Override
Cache load0.00160.1425150.0001
Sytem overhead
Fetch class attribute can translate value0.00110.094720.0005
Fetch class attribute name0.00180.152940.0004
XML
Image XML parsing0.00070.057620.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00080.0664160.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs