Filesystem mirror module

Author Message

Gunnstein Lye

Tuesday 01 July 2003 5:13:23 am

Idea: A module that makes eZ publish mirror a filesystem directory, by letting a cronjob create/edit/remove eZ publish objects when the content of that directory changes. For instance, copy your word-document to a certain directory, and it is converted to an eZ publish article. To make this, one would have to implement conversion rules in a settings file, for instance directories are converted to Folder objects, text files become Articles, *.jpg, *.gif and *.png become Images, Word documents are converted to html using a command line tool and then become Articles, and so on. The module should save some information about each file that is mirrored, using the md5sum as key, that way we can track when a file is moved. Feel free to implement.. :-)

Paul Borgermans

Tuesday 01 July 2003 5:31:42 am

Good exercise for using classes and objects/nodes from php

A course exercise?

--paul

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

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 10:33:11
Script start
Timing: Jan 18 2025 10:33:11
Module start 'layout'
Timing: Jan 18 2025 10:33:11
Module start 'content'
Timing: Jan 18 2025 10:33:12
Module end 'content'
Timing: Jan 18 2025 10:33:12
Script end

Main resources:

Total runtime1.2165 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.0313152.6250
Module start 'layout' 0.00740.0031 741.656339.4453
Module start 'content' 0.01051.2044 781.1016529.0859
Module end 'content' 1.21490.0016 1,310.18758.1641
Script end 1.2165  1,318.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2878160.0002
Check MTime0.00150.1248160.0001
Mysql Total
Database connection0.00120.102710.0012
Mysqli_queries1.170396.2013540.0217
Looping result0.00070.0552520.0000
Template Total1.176596.720.5883
Template load0.00210.174720.0011
Template processing1.174496.537420.5872
Template load and register function0.00010.010010.0001
states
state_id_array0.00210.170810.0021
state_identifier_array0.00130.107820.0007
Override
Cache load0.00170.1434100.0002
Sytem overhead
Fetch class attribute can translate value0.00100.084120.0005
Fetch class attribute name0.00130.104740.0003
XML
Image XML parsing0.00100.081420.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00100.0788230.0000
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs