public function showObjectSelectorObject() { global $rbacsystem, $ilToolbar; // MINIMUM ACCESS LEVEL = 'read' if (!$rbacsystem->checkAccess('read', $this->object->getRefId())) { $this->ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $this->ilErr->MESSAGE); } $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'statistic')); ilUtil::sendInfo($this->lng->txt('paya_select_object_to_sell')); include_once "./Services/Payment/classes/class.ilPaymentObjectSelector.php"; $exp = new ilPaymentObjectSelector($this, "showObjectSelector"); if (!$exp->handleCommand()) { $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.paya_object_selector.html", 'Services/Payment'); $this->tpl->setVariable("EXPLORER", $exp->getHTML()); } return true; }
public function showObjectSelector() { global $ilToolbar; $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.paya_object_selector.html", 'Services/Payment'); $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'showStatistics')); ilUtil::sendInfo($this->lng->txt("paya_select_object_to_sell")); $exp = new ilPaymentObjectSelector($this, "showObjectSelector"); if (!$exp->handleCommand()) { $this->tpl->setVariable("EXPLORER", $exp->getHTML()); } return true; }
public function showObjectSelector() { /** * @var $tree ilTree * @var $ilToolbar ilToolbarGUI */ global $tree, $ilToolbar; include_once './Services/Payment/classes/class.ilPaymentObjectSelector.php'; $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.paya_object_selector.html', 'Services/Payment'); $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'showObjects')); ilUtil::sendInfo($this->lng->txt('paya_select_object_to_sell')); $exp = new ilPaymentObjectSelector($this->ctrl->getLinkTarget($this, 'showObjectSelector'), (string) strtolower(get_class($this))); $exp->setExpand($_GET['paya_link_expand'] ? $_GET['paya_link_expand'] : $tree->readRootId()); $exp->setExpandTarget($this->ctrl->getLinkTarget($this, 'showObjectSelector')); $exp->setOutput(0); $this->tpl->setVariable("EXPLORER", $exp->getOutput()); return true; }
public function showObjectSelectorObject() { global $rbacsystem, $tree, $ilToolbar; // MINIMUM ACCESS LEVEL = 'read' if (!$rbacsystem->checkAccess('read', $this->object->getRefId())) { $this->ilErr->raiseError($this->lng->txt('msg_no_perm_read'), $this->ilErr->MESSAGE); } include_once './Services/Payment/classes/class.ilPaymentObjectSelector.php'; $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.paya_object_selector.html', 'Services/Payment'); $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'statistic')); ilUtil::sendInfo($this->lng->txt('paya_select_object_to_sell')); $exp = new ilPaymentObjectSelector($this->ctrl->getLinkTarget($this, 'showObjectSelector'), (string) strtolower(get_class($this))); $exp->setExpand($_GET['paya_link_expand'] ? $_GET['paya_link_expand'] : $tree->readRootId()); $exp->setExpandTarget($this->ctrl->getLinkTarget($this, 'showObjectSelector')); $exp->setOutput(0); $this->tpl->setVariable('EXPLORER', $exp->getOutput()); return true; }
public function showObjectSelector() { /** * @var $ilToolbar ilToolbarGUI */ global $ilToolbar; $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.paya_object_selector.html', 'Services/Payment'); $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'showObjects')); ilUtil::sendInfo($this->lng->txt('paya_select_object_to_sell')); include_once "./Services/Payment/classes/class.ilPaymentObjectSelector.php"; $exp = new ilPaymentObjectSelector($this, "showObjectSelector"); if (!$exp->handleCommand()) { $this->tpl->setLeftNavContent($exp->getHTML()); } return true; }