How to override stock kernel classes without kernel hacking?

Author Message

kracker (the)

Friday 01 December 2006 2:52:51 am

<b>Question</b>
<i>How can one override stock kernel classes without kernel hacking?</i>

<b>Example in Question</b>

I would like to change the internals of the method 'orderStatistics' in the class file, <i>kernel/classes/ezorder.php</i>.

Yet I would rather not patch stock eZ publish each time.

//kracker
<b>Maylynne - Catch Me</b>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Kristof Coomans

Friday 01 December 2006 8:40:42 am

Hi kracker

Did you try to play with the include_path PHP ini directive? See http://www.php.net/ini.core#ini.include-path

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 19 2025 13:48:21
Script start
Timing: Jan 19 2025 13:48:21
Module start 'layout'
Timing: Jan 19 2025 13:48:21
Module start 'content'
Timing: Jan 19 2025 13:48:21
Module end 'content'
Timing: Jan 19 2025 13:48:21
Script end

Main resources:

Total runtime0.0262 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.4141152.6563
Module start 'layout' 0.00870.0057 742.070339.5078
Module start 'content' 0.01450.0082 781.578189.3984
Module end 'content' 0.02270.0034 870.976630.3047
Script end 0.0261  901.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003312.5545140.0002
Check MTime0.00124.6409140.0001
Mysql Total
Database connection0.00103.655510.0010
Mysqli_queries0.005621.599330.0019
Looping result0.00000.126710.0000
Template Total0.002910.910.0029
Template load0.00207.624610.0020
Template processing0.00093.284510.0009
Override
Cache load0.00176.373910.0017
General
dbfile0.002710.142480.0003
String conversion0.00000.099440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs