Forums / Developer / Content class create/modify API/PHP
Piotrek Karaś
Tuesday 25 November 2008 9:00:13 am
Hi,
Does anyone have an isolated eZ API (PHP) example or tutorial for creating and editing eZ Publish content classes (not content objects)? I will probably be able to isolate it myself, but maybe some could save me up some hours ;)
Thanks in advance,
Piotrek
-- Company: mediaSELF Sp. z o.o., http://www.mediaself.pl eZ references: http://ez.no/partners/worldwide_partners/mediaself eZ certified developer: http://ez.no/certification/verify/272585 eZ blog: http://ez.ryba.eu
Saturday 06 December 2008 11:42:08 pm
Come on, guys. I've been sick for some time, and I was sure that I would have a nice surprise when I'm back in front of eZ ;)
Can't believe no one has ever created classes dynamically...
André R.
Sunday 07 December 2008 4:00:09 am
Never done this, but you should find what you need to create a class in kernel/class/edit.php on line 128 - 140, but the code that handles attributes are 'a bit' specific for the view.kernel/class/copy.php might be a better starting point for the attributes.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom