Forums / Developer / First ezCalendar release

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

eZ debug

Timing: Jan 18 2025 15:01:13
Script start
Timing: Jan 18 2025 15:01:13
Module start 'content'
Timing: Jan 18 2025 15:01:13
Module end 'content'
Timing: Jan 18 2025 15:01:14
Script end

Main resources:

Total runtime0.2010 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.8438180.8359
Module start 'content' 0.00620.0075 769.679797.8672
Module end 'content' 0.01370.1873 867.5469525.6484
Script end 0.2010  1,393.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00412.0632200.0002
Check MTime0.00150.7435200.0001
Mysql Total
Database connection0.00080.394910.0008
Mysqli_queries0.144171.67191410.0010
Looping result0.00341.66951390.0000
Template Total0.186892.910.1868
Template load0.00100.475510.0010
Template processing0.185892.425410.1858
Override
Cache load0.00070.332310.0007
Sytem overhead
Fetch class attribute can translate value0.00090.461610.0009
XML
Image XML parsing0.00040.181010.0004
General
dbfile0.00793.9535200.0004
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs