public function forwardToPageObject()
 {
     global $lng, $ilTabs;
     $ilTabs->clearTargets();
     $ilTabs->setBackTarget($lng->txt('back'), $this->ctrl->getLinkTarget($this), '_top');
     // page object
     include_once 'Services/Payment/classes/class.ilShopPage.php';
     include_once 'Services/Payment/classes/class.ilShopPageGUI.php';
     $lng->loadLanguageModule('content');
     include_once './Services/Style/classes/class.ilObjStyleSheet.php';
     $this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
     if (!ilShopPage::_exists('shop', self::SHOP_PAGE_EDITOR_PAGE_ID)) {
         // doesn't exist -> create new one
         $new_page_object = new ilShopPage();
         $new_page_object->setParentId(0);
         $new_page_object->setId(self::SHOP_PAGE_EDITOR_PAGE_ID);
         $new_page_object->createFromXML();
     }
     $this->ctrl->setReturnByClass('ilshoppagegui', 'edit');
     $page_gui = new ilShopPageGUI(self::SHOP_PAGE_EDITOR_PAGE_ID);
     return $this->ctrl->forwardCommand($page_gui);
 }
 private function __getAbstractHTML($a_payment_object_id)
 {
     // page object
     include_once 'Services/Payment/classes/class.ilShopPage.php';
     include_once 'Services/Payment/classes/class.ilShopPageGUI.php';
     // if page does not exist, return nothing
     if (!ilShopPage::_exists('shop', $a_payment_object_id)) {
         return '';
     }
     include_once 'Services/Style/classes/class.ilObjStyleSheet.php';
     // get page object
     $page_gui = new ilShopPageGUI($a_payment_object_id);
     return $page_gui->showPage();
 }
 public function forwardToPageObject()
 {
     /**
      * @var $ilTabs ilTabsGUI
      */
     global $ilTabs;
     if (!(int) $_GET['pobject_id']) {
         ilUtil::sendInfo($this->lng->txt('paya_no_object_selected'));
         return $this->showObjects();
     }
     $this->ctrl->setParameter($this, 'pobject_id', (int) $_GET['pobject_id']);
     $this->__initPaymentObject((int) $_GET['pobject_id']);
     $this->lng->loadLanguageModule('content');
     $ilTabs->clearTargets();
     $ilTabs->clearSubTabs();
     $ilTabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'editDetails'), '_top');
     // page objec
     include_once 'Services/Payment/classes/class.ilShopPage.php';
     include_once 'Services/Payment/classes/class.ilShopPageGUI.php';
     include_once './Services/Style/classes/class.ilObjStyleSheet.php';
     $this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
     if (!ilShopPage::_exists('shop', $this->pobject->getPobjectId())) {
         // doesn't exist -> create new one
         $new_page_object = new ilShopPage();
         $new_page_object->setParentId(0);
         $new_page_object->setId($this->pobject->getPobjectId());
         $new_page_object->createFromXML();
     }
     $this->ctrl->setReturnByClass('ilshoppagegui', 'edit');
     $page_gui = new ilShopPageGUI($this->pobject->getPobjectId());
     $this->ctrl->setParameter($page_gui, 'pobject_id', (int) $_GET['pobject_id']);
     return $this->ctrl->forwardCommand($page_gui);
 }