eZpublish Coding standards up to date, Where ?

Author Message

Jean-Yves Zinsou

Thursday 20 August 2009 7:53:21 am

The coding standards i found are :
- http://ez.no/ezpublish/documentation/development/standards/php
- http://ezcomponents.org/contributing/coding_standards#id8

One is marked as no more maintained, the other one is specific to ezcomponents...
Which one should i use ?

Thanx

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Heath

Thursday 20 August 2009 3:52:25 pm

The answer is simple.

If you are creating an ezpublish extension / site use the ezpublish conventions as they are directly applicable.

However if you are creating an ezcomponent itself you will want to use the ezcomponents conventions as they are directly applicable.

Updated: We've added a related answer in eZpedia [0]

Cheers,
Heath

[0] http://ezpedia.org/en/ez/coding_standards

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jean-Yves Zinsou

Friday 21 August 2009 1:21:05 am

Thanks a lot, Heath...

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

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

Main resources:

Total runtime0.0153 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.0051 589.4766152.6406
Module start 'layout' 0.00510.0031 742.117239.4766
Module start 'content' 0.00820.0051 781.593889.3672
Module end 'content' 0.01330.0020 870.960934.3047
Script end 0.0152  905.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002818.0553140.0002
Check MTime0.00117.2065140.0001
Mysql Total
Database connection0.00064.215010.0006
Mysqli_queries0.002717.841530.0009
Looping result0.00000.065510.0000
Template Total0.001510.110.0015
Template load0.00095.708410.0009
Template processing0.00074.321110.0007
Override
Cache load0.00063.991810.0006
General
dbfile0.00032.033480.0000
String conversion0.00000.045340.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