[Mediawiki-l] using AJAX-Framework prototype

Michael Heyder Info at hafenvolleyballer.de
Wed Sep 12 09:02:06 UTC 2007


Mathias Conradt schrieb:
> Use the wfGetDB function in response.php to retrieve the data (i.e.
> articles) from the database.
> 
> ...
> $theDoc->updateTitle();
> ...
> public function updateTitle()
> {
> 	$dbr = wfGetDB( DB_SLAVE );
> 	$theData = array();
> 	$theData['title'] = $this->title;		
> 	$theWhere =  array('id='.$this->uid);
> 	$dbr->update('page_make_up', $theData,$theWhere);
> 	$dbr->commit();
> }
> ...
Thats the problem: the response.php is a standalone file. No claases are 
integrated. It's only called from the ajax request. So none global vars 
and/or claases are implemented.

Hope someone can understand my problem.

regards
mic




More information about the MediaWiki-l mailing list