Extending/overriding kernel classes

Author Message

H-Works Agency

Tuesday 03 November 2009 9:20:21 am

Hello,

How can we extend, override kernel classes, for exemple eZUser, to add properties or method to a build-in object ?

When i try to extend a class in an extension my methods aren't called.

I think this would be a great information for every developper.

EZP is Great

H-Works Agency

Wednesday 04 November 2009 6:09:22 am

You could remove those "share" button : it slow down the page, ruin the layout and provide a function that nobody use.

EZP is Great

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 02:06:27
Script start
Timing: Jan 18 2025 02:06:27
Module start 'layout'
Timing: Jan 18 2025 02:06:27
Module start 'content'
Timing: Jan 18 2025 02:06:28
Module end 'content'
Timing: Jan 18 2025 02:06:28
Script end

Main resources:

Total runtime0.7275 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 587.9375152.6250
Module start 'layout' 0.00920.0048 740.562539.4453
Module start 'content' 0.01410.7119 780.0078484.0859
Module end 'content' 0.72600.0015 1,264.09388.1563
Script end 0.7275  1,272.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5477160.0002
Check MTime0.00150.2090160.0001
Mysql Total
Database connection0.00100.144310.0010
Mysqli_queries0.680293.4901520.0131
Looping result0.00060.0764500.0000
Template Total0.685594.220.3427
Template load0.00300.415820.0015
Template processing0.682493.799420.3412
Template load and register function0.00010.011310.0001
states
state_id_array0.00110.152510.0011
state_identifier_array0.00140.187620.0007
Override
Cache load0.00250.3451110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.086310.0006
Fetch class attribute name0.00140.197030.0005
XML
Image XML parsing0.00030.048110.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00100.1330170.0001
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs