why & when adding extension in ezp_extension.php

Author Message

Seb Gaillard

Friday 10 July 2009 4:13:36 am

Hi all,

I want to understand why and when is it recommanted to add a new line in
<b>ez/autoload/ezp_extension.php</b> ?

Gaetano Giunta

Friday 10 July 2009 5:14:20 am

It is necessary when
- you activate an extension that contains php classes
- you add new php classes to an extension that is already activated

Normally you regenerate that script via either the admin interface or a cli script.

The only reasons I can think of to alter it by hand is if
a - you prefer to have it sorted by extension instead of sorted by filename
b - you have php classes that are not detected by eZ automatically (eg. in files named .inc, old-school php way)
c - you prefer to remove from it php classes that are available in an extension's dir but you want unavailable
d - you have extensions using the same name for a php class and you want to make sure the correct one gets loaded
e - and similar cases...

[ if you have had in the past anally-retentive 'chef-de-projet' onboard , case a might apply... ;) ]

Principal Consultant International Business
Member of the Community Project Board

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:26:43
Script start
Timing: Jan 18 2025 11:26:43
Module start 'layout'
Timing: Jan 18 2025 11:26:43
Module start 'content'
Timing: Jan 18 2025 11:26:44
Module end 'content'
Timing: Jan 18 2025 11:26:44
Script end

Main resources:

Total runtime0.8803 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.1641152.6406
Module start 'layout' 0.00600.0025 741.804739.4766
Module start 'content' 0.00850.8702 781.2813524.7578
Module end 'content' 0.87870.0015 1,306.03918.1250
Script end 0.8802  1,314.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3845160.0002
Check MTime0.00140.1586160.0001
Mysql Total
Database connection0.00110.121110.0011
Mysqli_queries0.832094.5131540.0154
Looping result0.00060.0719520.0000
Template Total0.844295.920.4221
Template load0.00260.300720.0013
Template processing0.841695.601220.4208
Template load and register function0.00030.030910.0003
states
state_id_array0.00130.152210.0013
state_identifier_array0.00340.391020.0017
Override
Cache load0.00180.2083190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.087420.0004
Fetch class attribute name0.00140.154130.0005
XML
Image XML parsing0.00080.091920.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00080.0955160.0001
String conversion0.00000.000640.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs