Public Member Functions | |
ilPaymentBaseGUI () | |
setSection ($a_section) | |
getSection () | |
setMainSection ($a_main_section) | |
getMainSection () | |
buildHeader () | |
showButton ($a_cmd, $a_text, $a_target= '') | |
& | initTableGUI () |
setTableGUIBasicData (&$tbl, &$result_set, $a_default_order_column= '') | |
__buildStatusline () | |
__buildLocator () | |
__buildStylesheet () | |
__buildButtons () | |
Data Fields | |
$ilias | |
$lng | |
$db | |
$tpl | |
$rbacsystem | |
$user_obj | |
$section | |
$main_section |
Definition at line 25 of file class.ilPaymentBaseGUI.php.
ilPaymentBaseGUI::__buildButtons | ( | ) |
Definition at line 180 of file class.ilPaymentBaseGUI.php.
References ilPaymentTrustees::_hasObjectPermission(), ilPaymentTrustees::_hasStatisticPermission(), ilPaymentVendors::_isVendor(), getMainSection(), and getSection().
Referenced by buildHeader().
{ $this->tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html"); if($this->getMainSection() == $this->ADMIN) { if(ilPaymentVendors::_isVendor($this->user_obj->getId()) or ilPaymentTrustees::_hasStatisticPermission($this->user_obj->getId())) { $this->tpl->setCurrentBlock("tab"); $this->tpl->setVariable('TAB_TYPE',$this->getSection() == $this->SECTION_STATISTIC ? 'tabactive' : 'tabinactive'); $this->tpl->setVariable("TAB_LINK",$this->ctrl->getLinkTargetByClass('ilpaymentstatisticgui')); $this->tpl->setVariable("TAB_TEXT",$this->lng->txt('paya_statistic')); $this->tpl->parseCurrentBlock(); } if(ilPaymentVendors::_isVendor($this->user_obj->getId()) or ilPaymentTrustees::_hasObjectPermission($this->user_obj->getId())) { $this->tpl->setCurrentBlock("tab"); $this->tpl->setVariable('TAB_TYPE',$this->getSection() == $this->SECTION_OBJECT ? 'tabactive' : 'tabinactive'); $this->tpl->setVariable("TAB_LINK",$this->ctrl->getLinkTargetByClass('ilpaymentobjectgui')); $this->tpl->setVariable("TAB_TEXT",$this->lng->txt('paya_object')); $this->tpl->parseCurrentBlock(); } if(ilPaymentVendors::_isVendor($this->user_obj->getId())) { $this->tpl->setCurrentBlock("tab"); $this->tpl->setVariable('TAB_TYPE',$this->getSection() == $this->SECTION_TRUSTEE ? 'tabactive' : 'tabinactive'); $this->tpl->setVariable("TAB_LINK",$this->ctrl->getLinkTargetByClass('ilpaymenttrusteegui')); $this->tpl->setVariable("TAB_TEXT",$this->lng->txt('paya_trustees')); $this->tpl->parseCurrentBlock(); } } if($this->getMainSection() == $this->BASE) { $this->tpl->setCurrentBlock("tab"); $this->tpl->setVariable('TAB_TYPE',$this->getSection() == $this->SECTION_SHOPPING_CART ? 'tabactive' : 'tabinactive'); $this->tpl->setVariable("TAB_LINK",$this->ctrl->getLinkTargetByClass('ilpaymentshoppingcartgui')); $this->tpl->setVariable("TAB_TEXT",$this->lng->txt('paya_shopping_cart')); $this->tpl->parseCurrentBlock(); $this->tpl->setCurrentBlock("tab"); $this->tpl->setVariable('TAB_TYPE',$this->getSection() == $this->SECTION_BUYED_OBJECTS ? 'tabactive' : 'tabinactive'); $this->tpl->setVariable("TAB_LINK",$this->ctrl->getLinkTargetByClass('ilpaymentbuyedobjectsgui')); $this->tpl->setVariable("TAB_TEXT",$this->lng->txt('paya_buyed_objects')); $this->tpl->parseCurrentBlock(); } }
ilPaymentBaseGUI::__buildLocator | ( | ) |
Definition at line 140 of file class.ilPaymentBaseGUI.php.
References getMainSection(), and sendInfo().
Referenced by __buildStatusline().
{ $this->tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html"); $this->tpl->setVariable("TXT_LOCATOR",$this->lng->txt("locator")); $this->tpl->setCurrentBlock("locator_item"); $this->tpl->setVariable("ITEM", $this->lng->txt("personal_desktop")); $this->tpl->setVariable("LINK_ITEM", "../usr_personaldesktop.php"); $this->tpl->parseCurrentBlock(); switch($this->getMainSection()) { case $this->ADMIN: $this->tpl->setCurrentBlock("locator_item"); $this->tpl->setVariable("PREFIX",'> '); $this->tpl->setVariable("ITEM", $this->lng->txt("paya_locator")); $this->tpl->setVariable("LINK_ITEM", "./payment_admin.php"); $this->tpl->parseCurrentBlock(); break; case $this->BASE: $this->tpl->setCurrentBlock("locator_item"); $this->tpl->setVariable("PREFIX",'> '); $this->tpl->setVariable("ITEM", $this->lng->txt("pay_locator")); $this->tpl->setVariable("LINK_ITEM", "./payment.php"); $this->tpl->parseCurrentBlock(); break; } // CHECK for new mail and info sendInfo(); return true; }
ilPaymentBaseGUI::__buildStatusline | ( | ) |
Definition at line 135 of file class.ilPaymentBaseGUI.php.
References __buildLocator().
Referenced by buildHeader().
{ $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html"); $this->__buildLocator(); }
ilPaymentBaseGUI::__buildStylesheet | ( | ) |
Definition at line 174 of file class.ilPaymentBaseGUI.php.
References ilUtil::getJSPath(), and ilUtil::getStyleSheetLocation().
Referenced by buildHeader().
{ $this->tpl->setVariable("LOCATION_STYLESHEET",ilUtil::getStyleSheetLocation()); $this->tpl->setVariable("LOCATION_JAVASCRIPT",ilUtil::getJSPath('functions.js')); }
ilPaymentBaseGUI::buildHeader | ( | ) |
Definition at line 77 of file class.ilPaymentBaseGUI.php.
References __buildButtons(), __buildStatusline(), __buildStylesheet(), and getMainSection().
Referenced by ilPaymentAdminGUI::executeCommand(), and ilPaymentGUI::executeCommand().
{ $this->tpl->addBlockFile("CONTENT", "content", "tpl.payb_content.html"); switch($this->getMainSection()) { case $this->ADMIN: $this->tpl->setVariable("HEADER",$this->lng->txt('paya_header')); break; case $this->BASE: $this->tpl->setVariable("HEADER",$this->lng->txt('pay_header')); break; } $this->__buildStylesheet(); $this->__buildStatusline(); $this->__buildButtons(); }
ilPaymentBaseGUI::getMainSection | ( | ) |
Definition at line 72 of file class.ilPaymentBaseGUI.php.
Referenced by __buildButtons(), __buildLocator(), and buildHeader().
{
return $this->main_section;
}
ilPaymentBaseGUI::getSection | ( | ) |
Definition at line 64 of file class.ilPaymentBaseGUI.php.
Referenced by __buildButtons().
{
return $this->section;
}
ilPaymentBaseGUI::ilPaymentBaseGUI | ( | ) |
Definition at line 38 of file class.ilPaymentBaseGUI.php.
References $ilias, $lng, $rbacsystem, and $tpl.
Referenced by ilPaymentAdminGUI::ilPaymentAdminGUI(), ilPaymentBillAdminGUI::ilPaymentBillAdminGUI(), ilPaymentBuyedObjectsGUI::ilPaymentBuyedObjectsGUI(), ilPaymentGUI::ilPaymentGUI(), ilPaymentObjectGUI::ilPaymentObjectGUI(), ilPaymentShoppingCartGUI::ilPaymentShoppingCartGUI(), ilPaymentStatisticGUI::ilPaymentStatisticGUI(), and ilPaymentTrusteeGUI::ilPaymentTrusteeGUI().
{ global $ilias,$ilDB,$lng,$tpl,$rbacsystem; $this->ilias =& $ilias; $this->db =& $ilDB; $this->lng =& $lng; $this->tpl =& $tpl; $this->SECTION_STATISTIC = 1; $this->SECTION_OBJECT = 2; $this->SECTION_TRUSTEE = 3; $this->SECTION_SHOPPING_CART = 4; $this->SECTION_BUYED_OBJECTS = 5; $this->ADMIN = 4; $this->BASE = 5; $this->lng->loadLanguageModule('payment'); }
& ilPaymentBaseGUI::initTableGUI | ( | ) |
Definition at line 111 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentShoppingCartGUI::__showItemsTable(), ilPaymentObjectGUI::__showObjectsTable(), ilPaymentTrusteeGUI::__showSearchUserTable(), ilPaymentStatisticGUI::__showStatisticTable(), ilPaymentBuyedObjectsGUI::__showStatisticTable(), and ilPaymentTrusteeGUI::__showTrusteesTable().
{ include_once "./classes/class.ilTableGUI.php"; return new ilTableGUI(0,false); }
ilPaymentBaseGUI::setMainSection | ( | $ | a_main_section | ) |
Definition at line 68 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentAdminGUI::ilPaymentAdminGUI(), and ilPaymentGUI::ilPaymentGUI().
{ $this->main_section = $a_main_section; }
ilPaymentBaseGUI::setSection | ( | $ | a_section | ) |
Definition at line 60 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentAdminGUI::executeCommand(), and ilPaymentGUI::executeCommand().
{ $this->section = $a_section; }
ilPaymentBaseGUI::setTableGUIBasicData | ( | &$ | tbl, | |
&$ | result_set, | |||
$ | a_default_order_column = '' | |||
) |
Definition at line 117 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentObjectGUI::__showObjectsTable(), ilPaymentTrusteeGUI::__showSearchUserTable(), and ilPaymentTrusteeGUI::__showTrusteesTable().
{ $offset = $_GET["offset"]; $order = $_GET["sort_by"]; $direction = $_GET["sort_order"]; $tbl->setOrderColumn($order,$a_default_order_column); $tbl->setOrderDirection($direction); $tbl->setOffset($offset); $tbl->setLimit($_GET["limit"]); $tbl->setMaxCount(count($result_set)); $tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next")); $tbl->setData($result_set); }
ilPaymentBaseGUI::showButton | ( | $ | a_cmd, | |
$ | a_text, | |||
$ | a_target = '' | |||
) |
Definition at line 96 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentBillAdminGUI::__showButtons(), ilPaymentObjectGUI::__showPayMethodLink(), ilPaymentObjectGUI::addPrice(), ilPaymentObjectGUI::editDetails(), ilPaymentObjectGUI::editPrices(), ilPaymentStatisticGUI::editStatistic(), ilPaymentTrusteeGUI::performSearch(), ilPaymentTrusteeGUI::searchUser(), ilPaymentObjectGUI::showObjects(), ilPaymentObjectGUI::showObjectSelector(), ilPaymentObjectGUI::showSelectedObject(), and ilPaymentTrusteeGUI::showTrustees().
{ $this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html"); // display button $this->tpl->setCurrentBlock("btn_cell"); $this->tpl->setVariable("BTN_LINK",$this->ctrl->getLinkTarget($this,$a_cmd)); $this->tpl->setVariable("BTN_TXT",$a_text); if($a_target) { $this->tpl->setVariable("BTN_TARGET",$a_target); } $this->tpl->parseCurrentBlock(); }
ilPaymentBaseGUI::$db |
Definition at line 29 of file class.ilPaymentBaseGUI.php.
ilPaymentBaseGUI::$ilias |
Definition at line 27 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentBaseGUI().
ilPaymentBaseGUI::$lng |
Reimplemented in ilPaymentBillAdminGUI, ilPaymentBuyedObjectsGUI, ilPaymentObjectGUI, ilPaymentShoppingCartGUI, and ilPaymentStatisticGUI.
Definition at line 28 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentBaseGUI().
ilPaymentBaseGUI::$main_section |
Definition at line 36 of file class.ilPaymentBaseGUI.php.
ilPaymentBaseGUI::$rbacsystem |
Definition at line 31 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentBaseGUI().
ilPaymentBaseGUI::$section |
Definition at line 35 of file class.ilPaymentBaseGUI.php.
ilPaymentBaseGUI::$tpl |
Definition at line 30 of file class.ilPaymentBaseGUI.php.
Referenced by ilPaymentShoppingCartGUI::__showItemsTable(), ilPaymentObjectGUI::__showObjectsTable(), ilPaymentTrusteeGUI::__showSearchUserTable(), ilPaymentStatisticGUI::__showStatisticTable(), ilPaymentBuyedObjectsGUI::__showStatisticTable(), ilPaymentTrusteeGUI::__showTrusteesTable(), ilPaymentObjectGUI::editPrices(), ilPaymentBaseGUI(), and ilPaymentBuyedObjectsGUI::ilPaymentBuyedObjectsGUI().
ilPaymentBaseGUI::$user_obj |
Reimplemented in ilPaymentGUI, ilPaymentAdminGUI, ilPaymentBillAdminGUI, ilPaymentBuyedObjectsGUI, ilPaymentObjectGUI, ilPaymentShoppingCartGUI, ilPaymentStatisticGUI, and ilPaymentTrusteeGUI.
Definition at line 33 of file class.ilPaymentBaseGUI.php.