[Mediawiki-l] Editor and save article

Michael Heyder Info at hafenvolleyballer.de
Thu Sep 20 17:49:09 UTC 2007


Alexis Moinet schrieb:
> Michael Heyder wrote :
>> So i fetched some code of the editpage.php and tried to use this.
> 
> just out of curious : why don't you simply use the existing EditPage class instead of copying some part of it ? (I used to believe that re-use was one of the main point of using classes)
> 
> something probably close to :
> 
> $editor = new EditPage( $article );
> $editor->submit();
> 
> 
> 	

Because its part of a 4 step gui-wizard with additional fields, put into 
a pageobject!

regards
mic




More information about the MediaWiki-l mailing list