Author Topic

Willie Seabrook

Monday 22 September 2003 3:51:32 am

Comment38782

I've tried to scramble an approximate attempt together... many questions though: Want to help me along Dave? Have *you* made any progress?

Come on EZ!!!! One of you could demonstrate this is 5 minutes where it will take us a week to figure out the whole content tree model etc on our own!!!! :-( :-(

Regards,
Willie

###############################

$contentClassId = 3; //For ezUser, we would make this the ezUser class id but otherwise just pick and choose.
$name = "Blah?"; //What should this be?
$userId = 1; //The userId creating it. Since we are running this outside of the web for mainainence purposes its fine to use root.

$contentObject obj = ezContentObject::create($name, $contentClassId, $userId);

for each attribute that the content class has
$obj->setAttribute("name", "value"); //What if its a binary file or something like that?

$contentObject->store();

I don't see any way to place the new object in folders etc

$newUser = ezUser::create($contentObjectId);
$newUser->store();

#################################3