On 13/07/07, Michael Heyder
<Info(a)hafenvolleyballer.de> wrote:
[1]Request Controlling
I'm not really sure where the request-control is based: That means, if
the query string looks like '....action=edit' for example, the
editpage.php takes action.
MediaWiki::performAction(), defined in includes/Wiki.php, which
typically passes off to Article::$action().
[2]Accordingly is there a way to implement
something like a interface,
which proves some conditions and on the true result the normal link
procedure goes on and if it fails, a alternative way has to be gone
This is unclear.
Rob Church
O.K. thanks.
Interface is probably not the right description. Perhaps something like
a new actionController, which indixes a new redirect
Something like this:
==newActionController==
$wgHooks['AlternateEdit'][] = 'actionEdit';
function actionEdit($article)
{
global $wgRequest, $wgTitle, $wgOut;
if($wgRequest->getVal('action') != 'edit')
return false;
==
If a article_id exists, the redirect to editPage.php
else to newArticleWizard.
But one problem remains: php tells me, that there#s no object article?
so long
Michael