I need cronjob to rename pdf file attached with artical

Author Message

Jignesh Sailor

Friday 06 May 2011 4:51:34 am

I am new to ezpublish,I need to rename the pdf file of the artical after 7 days for this i need to write cronjob ,Pls help me out to write cronjob for this

Quoc Huy Nguyen Dinh

Monday 09 May 2011 3:40:56 am

Hi

Can't help you write it all but here are some pointers:

  • the workflow script will fetch objects of certain class that had been modified more than 7 days ago
  • for each of the object you will get the datamap ( $datamap = $object->dataMap() )
  • modify the attribute
  • and store it.

Maybe this can help:

http://share.ez.no/forums/developer/solved-modify-update-objects-from-php

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 17 2025 23:38:42
Script start
Timing: Jan 17 2025 23:38:42
Module start 'layout'
Timing: Jan 17 2025 23:38:42
Module start 'content'
Timing: Jan 17 2025 23:38:42
Module end 'content'
Timing: Jan 17 2025 23:38:42
Script end

Main resources:

Total runtime0.0149 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2734152.6563
Module start 'layout' 0.00600.0030 741.929739.5156
Module start 'content' 0.00890.0042 781.445389.6016
Module end 'content' 0.01310.0018 871.046930.2891
Script end 0.0149  901.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.3612140.0002
Check MTime0.00107.0080140.0001
Mysql Total
Database connection0.00128.238310.0012
Mysqli_queries0.002818.485430.0009
Looping result0.00000.119710.0000
Template Total0.00149.010.0014
Template load0.00074.644910.0007
Template processing0.00074.370410.0007
Override
Cache load0.00053.180110.0005
General
dbfile0.00021.558980.0000
String conversion0.00000.057440.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