Author Topic

Felix Woldt

Saturday 26 August 2006 8:12:55 am

Comment46457

Hi Xavier,

it's a great idea to make such an extension like this :-).
But it's very complex. Do you have a developing plan?
...
It would be great to have this as an in build feature of eZ.
May be i can help you with development???

I had a short look to your sourcecode ... you did more work as you needed :-(
You wrote functions to delete a dir ...
EZ has this functionaltiy in different libaries :-)
Have a look to

include_once( 'lib/ezfile/classes/ezdir.php' ); 

e.g.

eZDir:recursiveDelete( $dir );

=====
To have access to post and getvariable you should use the eZ build in functions:
e.g.

$http =& eZHTTPTool::instance();

if( $http->hasVariable('testvar') )
	$test = $http->Variable('testvar');

=====

To have access to parameter you send to the module you should use something like this
you set this in the module.php (params, unordered_params)

$Module =& $Params["Module"];

if( isSet($Params['NodeId']) )
	$NodeId = $Params['NodeId'];

=====

You can learn a lot from the conent module of ez.
Have a look to
kernel/content/module.php

====
May be this help you a little bit to improve your php code.

Best Regards
Felix Woldt

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter