Monday 18 October 2010 1:38:28 am
At the end of this tutorial you should be comfortable with exporting multiple users from PHP scripts into a external file using a cronjob. You should also be comfortable with filtering fetch statements in PHP.
There are specific cases where you need to pull the eZ Publish information directly in your PHP scripts. There are options available for both users and nodes. This tutorial provides a detailed guide about extracting user Information through a script and going through some practical examples.
Part One of the tutorial provided ways to extract individual users and demonstrated how to display all of the user information. It also demonstrated some of the built in ways you can extract multiple users.
This part of the tutorial concentrates on the eZContentTreeNode::subTreeByNodeID() method. We will look at its basic use and some practical examples before creating a cronjob to automate the process.
You should have a 4.x build of eZ Publish, be comfortable with the structure of eZ Publish source files and be able to run scripts through the command line. Knowledge of the cronjob functionality is also required. Being comfortable with eZ Publish scripts are advantageous. You should also have read the first part of the tutorial.