Forums / Developer / Importing Data / Comment42335
Kristian Hole
Thursday 10 February 2005 4:40:08 pm
Hi
Allways good when people contribute their code :)
>(What bothers me is that I don't need the user. From what I can tell, I just need the user ID, which I have as an integer. Why do I need to go to all the trouble of instantiating the user just to get their ID when I have to provide the ID to instantiate the user in the first place? I have what I need already.)
In a plain install (or most cases) you can use the userID 14, which is the default administrator.
The function importRSSItem in cronjobs/rssimport.php has some of the basic functionality. It can be used as an example on how to create a new object, filling the attributes and publishing it.
Hope this can be of some help.
Kristian http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute