Thread:Project:Support desk/Auto creating pages/reply (4)

Thanks for pointing me in the direction of the 'doEditContent' method :]

Ive managed to auto-create a page with content, but Im not sure if this is a 'right' or smart way to do it. The computer runs through alot of code when I call these functions, and Im not sure if calling the objects like this may give problems later on:

$file = 'testing'; $title_object = Title::newFromText($file); $page_object = new Article($title_object); $editor_object = new EditPage($page_object); $content_bla = new wikitextcontent("Im just testing");

$doEditStatus = $editor_object->mArticle->doEditContent( $content_bla, $editor_object->summary, 97,			 false, null, $editor_object->contentFormat );