Forums / Developer / Converting attributes to eZMatrix

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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