New cronjob

Author Message

David Santiso

Sunday 21 August 2011 7:02:15 am

Hi,

I want to create a new cronjob, run once a week and change a field of all published objects belonging to a particular class.

Is there a tutorial available that can continue to develop my new cronjob?

Thanks,

David

Hamdi Laadhari

Tuesday 23 August 2011 2:40:43 am

Why don't you mimic the existing ones, why don't you browse the projects offering cronjobs.

 

You can use worklows, or even content edit handler to achieve your goal

Certified eZ Publish Entreprise 4.5
http://www.laadhari.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 15 2025 09:07:20
Script start
Timing: Jan 15 2025 09:07:20
Module start 'layout'
Timing: Jan 15 2025 09:07:20
Module start 'content'
Timing: Jan 15 2025 09:07:22
Module end 'content'
Timing: Jan 15 2025 09:07:22
Script end

Main resources:

Total runtime1.3828 sec
Peak memory usage6,144.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 685.3438183.6719
Module start 'layout' 0.00550.0030 869.015652.5234
Module start 'content' 0.00851.3723 921.53911,739.6563
Module end 'content' 1.38080.0019 2,661.195364.5859
Script end 1.3827  2,725.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00560.4079160.0004
Check MTime0.00140.0997160.0001
Mysql Total
Database connection0.00080.055710.0008
Mysqli_queries1.332796.3814540.0247
Looping result0.00050.0394520.0000
Template Total1.344197.220.6721
Template load0.00430.312120.0022
Template processing1.339896.893320.6699
Template load and register function0.00120.083710.0012
states
state_id_array0.00130.093610.0013
state_identifier_array0.00240.176420.0012
Override
Cache load0.00380.2755120.0003
Sytem overhead
Fetch class attribute can translate value0.00060.042020.0003
Fetch class attribute name0.00180.131520.0009
XML
Image XML parsing0.00020.016620.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.0613100.0001
String conversion0.00000.000740.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs