Hallo,
as a newbie to mediawiki I've at the moment one questions. In my last project I worked on the zendframework and there I've had controllers
[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.
[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
thxs for some support Michael
On 13/07/07, Michael Heyder Info@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
Rob Church schrieb:
On 13/07/07, Michael Heyder Info@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
On 13/07/07, Michael Heyder Info@hafenvolleyballer.de wrote:
Interface is probably not the right description. Perhaps something like a new actionController, which indixes a new redirect
This still makes absolutely no sense, I'm sorry.
Rob Church
mediawiki-l@lists.wikimedia.org