Creating eZ Publish Objects in PHP
1 / 16
eZ Community Knowledge Base : http://share.ez.no/tutorials | http://share.ez.no/articles
http://share.ez.no ? The eZ Publish Community Gateway ? | contact : community@ez.no
Creating eZ Publish Objects in PHP
By David Linnard
http://www.onequarterenglish.co.uk
2 / 16
eZ Community Knowledge Base : http://share.ez.no/tutorials | http://share.ez.no/articles
http://share.ez.no ? The eZ Publish Community Gateway ? | contact : community@ez.no
Index
1
? Goal description .............................................................................................3
?
2
? Introduction ..................................................................................................3
?
3
? Pre-requisites and target population ..................................................................3
?
4
? Step 1 鈥 Setup the script .................................................................................3
?
5
? Step 2 - Who will be importing? ...................................................................... 4
?
5.1
? Current User ............................................................................................................................... 4
?
5.2
? A Specific User.......................................................................................................................... 4
?
5.2.1
? Specific User by Name........................................................................................................ 5
?
5.2.2
? Specific User by Email........................................................................................................ 5
?
6
? Step 3 - Adding the Content.............................................................................5
?
6.1
? Simple Content 鈥 A Folder........................................................................................................... 5
?
6.1.1
? Retrieving background information......................................................................................... 7
?
6.1.2
? Preparing general object information ..................................................................................... 7
?
6.1.3
? Preparing the object attributes.............................................................................................. 8
?
6.1.4
? Creating the object .............................................................................................................. 8
?
6.2
? Importing XML Fields ................................................................................................................. 11
?
6.3
? Importing Images and Files ........................................................................................................ 12
?
6.4
? Adding related objects............................................................................................................... 14
?
6.4.1
? Adding related objects to an attribute.................................................................................. 14
?
6.4.2
? Adding related objects to an object ..................................................................................... 15
?
6.4.3
? Adding Other Content......................................................................................................... 15
?
7
? Conclusion .................................................................................................. 15
?
8
? Resources ................................................................................................... 15
?
9
? About the author : David Linnard ..................................................................... 16
?
10
? License choice ............................................................................................ 16
?
3 / 16
eZ Community Knowledge Base : http://share.ez.no/tutorials | http://share.ez.no/articles