at the moment I'm working on a UI-wizard, in this case to integrate a newnewsWizard to a wikisystem.
Therefore I#ve created two classes:
Code: Select all
abstract class wizardBase
{
public $pages = array();
private $currentpage;
private $numpages;
public function __construct()
{
if (isset($_SESSION['wizard']))
$this->wSession=$_SESSION['wizard'];
}
protected function gotoNextPage()
{
if (($currentpage < $numpages) && $this->pages[$currentpage]->isvalid())
{
$currentpage+=1;
$this->pages[$currentpage]->show();
}
else
{
echo "niemals!";
}
}Code: Select all
class newPageWizard
extends wizardBase
{
var $mArticle;
public function __construct()
{
global $wgRequest;
$title=$wgRequest->getVal('title');
$title=Title::newFromText($title);
$article=new Article($title);
$this->showToolbarButtonsButtons();
}I would be happy about some support
thanks
r.