<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */


class DataMenuWbPlugin extends DataMenuOhneStatus
{
  public function mainmenu()
  {
    $this->getsight();
    $this->showheader();
    $this->showbody();
    $this->showfooter();
  }

  public function getsight($pSigthID = 0)
  {
    $this->sight = SightsAPI::getNewObject();
  }

  
  public function getbody()
  {
    $urlparam = new URLParameterWbPlugin();
    $pid = $urlparam->pid;



    $plugin = PluginApi::getPlugin($pid);

    if (is_string($plugin)) {
      return $plugin;
    }

    
    return $plugin->getContent($urlparam);
  }
}