+class PlatalBananaPage extends BananaPage
+{
+ public function __construct()
+ {
+ Banana::$withtabs = false;
+ parent::__construct();
+ }
+
+ protected function prepare()
+ {
+ $tpl = parent::prepare();
+ global $wiz, $page;
+ $wiz = new PlWizard('Banana', 'core/plwizard.tpl', true, false);
+ foreach ($this->pages as $name=>&$mpage) {
+ if ($text == 'profile') {
+ $wiz->addPage('BananaProfile', $mpage['text'], $name);
+ } else {
+ $wiz->addPage('BananaHandler', $mpage['text'], $name);
+ }
+ }
+ $wiz->apply($page, 'banana', $this->page);
+ return $tpl;
+ }
+}
+
+class BananaHandler
+{
+ public function __construct(PlWizard &$wiz)
+ {
+ }
+
+ public function template()
+ {
+ return 'banana/index.tpl';
+ }
+
+ public function prepare(PlatalPage &$page, $id)
+ {
+ }
+
+ public function process()
+ {
+ return PlWizard::CURRENT_PAGE;
+ }
+}
+