First ezCalendar release

Author Message

Gabriel Ambuehl

Thursday 01 May 2003 7:00:01 am

Grab it here http://ez.no/developer/ez_publish_3/contributions/ezcalendar

Visit http://triligon.org

Paul Forsyth

Thursday 01 May 2003 1:07:03 pm

Gabriel,

I've just commented on your calendar module. I like it.

Apologies for the formatting of the comment - i didnt realise the comment field act like a text field instead of a xml text field :)

paul

geovanni rosetto

Thursday 01 May 2003 2:31:50 pm

Gabriel,
Thanks for your time developing your module and for contributing it to the community.
I'll download it as soon as I get my machine ready to install ez publish.

Best regards,

geo

Paul Borgermans

Friday 02 May 2003 1:10:08 am

Gabriel,

Why didn't you use content classes/objects for it? Right now it is rather "isolated" from the other content objects and hence difficult to extend and you loose the benifits of the rest of ezpublish (related objects, versioning, ...).

But of course, it is already useful as it stands now

Good job

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Borgermans

Friday 02 May 2003 1:43:06 am

Hey, its in fact also a good example for those who want to port other "foreign" applications quickly

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Gabriel Ambuehl

Friday 02 May 2003 4:45:11 am

Why not content classes?

Basically, I was bored one day (note that I don't really do anything this summer except waiting for university to start in October so stay tuned for other modules) and decided it would be rather easy to write a calendar. Turns out it's far from trivial (ever noticed how screwed our time system is? There are days of 86400 seconds, weeks with 7 days that don't give a damn about month boundaries and to top it off, months aren't always the same length either) so after I had the time stuff sorted, I was already way over the time I had estimated.

Additionally, I had to realize that a sane display is hard to do without CSS and a lot of custom code (there are about 150 lines that render week and day pages) and the content module doesn't really provide very much to enable you to do this kind of stuff without a lot of cumbersome templating (I find it's orders of magnitude easier to just code it in standard PHP, it's not like anyone would go change the design considering how hard it is to come up with a sane one anyway).

Furthermore, I didn't feel it makes a lot of sense to have versioning in a calendar and it's much easier to just use ezDB instead of ezContent objects as I know SQL and the API documentation is rather thin on big parts of the backend stuff that is responsible for actually doing something.

Visit http://triligon.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 18 2025 11:30:11
Script start
Timing: Jan 18 2025 11:30:11
Module start 'layout'
Timing: Jan 18 2025 11:30:11
Module start 'content'
Timing: Jan 18 2025 11:30:12
Module end 'content'
Timing: Jan 18 2025 11:30:12
Script end

Main resources:

Total runtime0.9274 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.0469152.6250
Module start 'layout' 0.00750.0031 741.671939.4453
Module start 'content' 0.01070.9152 781.1172633.0391
Module end 'content' 0.92590.0015 1,414.156316.4766
Script end 0.9274  1,430.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3568160.0002
Check MTime0.00140.1521160.0001
Mysql Total
Database connection0.00150.158210.0015
Mysqli_queries0.864293.1811700.0123
Looping result0.00080.0857680.0000
Template Total0.889395.920.4447
Template load0.00270.289920.0013
Template processing0.886695.601420.4433
Template load and register function0.00010.015510.0001
states
state_id_array0.00140.152210.0014
state_identifier_array0.00120.124220.0006
Override
Cache load0.00240.2549310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068840.0002
Fetch class attribute name0.00340.366970.0005
XML
Image XML parsing0.00090.098340.0002
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00080.0865170.0000
String conversion0.00000.001040.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs