Converting attributes to eZMatrix

Author Message

Peter Putzer

Friday 19 December 2008 12:23:48 am

Hi!

Has anyone got some example code modifying every object of a certain class (via the PHP API)?

I have some author information stored in four attributes at the moment: an author list and three strings to add "position" information for the first three authors.The whole setup is rather old, and well, back then it seemed like the simplest idea ;-)

Anyway, now I want to replace these attributes with a single eZMatrix, which I've already added to the class definition. The conversion scripts supplied with various eZ Publish releases seem mostly concerned with a class level attribute change, which is not necessary here - I simply need to examine each object, fill one of the attributes with information from another one and store object again.

Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.