Ideas for an eZModuleInterface

Author Message

Gaetano Giunta

Monday 21 June 2010 2:58:29 am

Taking a slightly different approach to the original problem (simplifying development of new views via php classes):

  • define a conventional dir where 'controller' php classes are to be put
  • every new public, static method of those classes becomes a view
  • those methods must return either a chunk of html code or the $results array
  • for access checking, a policy limitation is available per single method of every controller class

If this sounds yummy, please join development effort on the upcoming "eZ On rails" extension!

Under the hood:

  • no kernel hacks
  • one single new module: ezonrails
  • one new view per controller class
  • the actual class methods end up as first positional parameter
  • no validation (yet) of the parameters passed to php methods, but it can be done via introspection

http://projects.ez.no/ezonrails

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

Main resources:

Total runtime0.9670 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.5547152.6250
Module start 'layout' 0.00740.0024 742.179739.9063
Module start 'content' 0.00980.9557 782.0859469.3125
Module end 'content' 0.96550.0015 1,251.398410.2969
Script end 0.9670  1,261.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3826160.0002
Check MTime0.00130.1377160.0001
Mysql Total
Database connection0.00090.091310.0009
Mysqli_queries0.923495.4876480.0192
Looping result0.00050.0502460.0000
Template Total0.927695.920.4638
Template load0.00240.246620.0012
Template processing0.925295.681120.4626
Template load and register function0.00010.013710.0001
states
state_id_array0.00300.310610.0030
state_identifier_array0.00160.161820.0008
Override
Cache load0.00190.2009190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.083310.0008
Fetch class attribute name0.00060.066720.0003
XML
Image XML parsing0.00040.043510.0004
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00070.0723160.0000
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs