Inheritance diagram for ilPaymentBuyedObjectsGUI:
Collaboration diagram for ilPaymentBuyedObjectsGUI:Public Member Functions | |
| ilPaymentBuyedObjectsGUI (&$user_obj) | |
| & | executeCommand () |
| execute command | |
| showItems () | |
| __showStatisticTable ($a_result_set) | |
| __initBookingsObject () | |
Data Fields | |
| $ctrl | |
| $lng | |
| $user_obj | |
| $psc_obj = null | |
Definition at line 34 of file class.ilPaymentBuyedObjectsGUI.php.
| ilPaymentBuyedObjectsGUI::__initBookingsObject | ( | ) |
Definition at line 204 of file class.ilPaymentBuyedObjectsGUI.php.
Referenced by showItems().
{
include_once './payment/classes/class.ilPaymentBookings.php';
$this->bookings_obj =& new ilPaymentBookings();
return true;
}
Here is the caller graph for this function:| ilPaymentBuyedObjectsGUI::__showStatisticTable | ( | $ | a_result_set | ) |
Definition at line 149 of file class.ilPaymentBuyedObjectsGUI.php.
References $_GET, $tbl, ilPaymentBaseGUI::$tpl, and ilPaymentBaseGUI::initTableGUI().
Referenced by showItems().
{
$tbl =& $this->initTableGUI();
$tpl =& $tbl->getTemplateObject();
// SET FORMAACTION
$tpl->setCurrentBlock("tbl_form_header");
$tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$tpl->parseCurrentBlock();
$tbl->setTitle($this->lng->txt("paya_statistic"),"icon_pays_b.gif",$this->lng->txt("paya_statistic"));
$tbl->setHeaderNames(array($this->lng->txt("paya_transaction"),
$this->lng->txt("title"),
$this->lng->txt("paya_vendor"),
$this->lng->txt("paya_customer"),
$this->lng->txt("paya_order_date"),
$this->lng->txt("duration"),
$this->lng->txt("price_a"),
$this->lng->txt("paya_payed_access")));
$tbl->setHeaderVars(array("transaction",
"title",
"vendor",
"customer",
"order_date",
"duration",
"price",
"payed_access"),
array("cmd" => "",
"cmdClass" => "ilpaymentstatisticgui",
"cmdNode" => $_GET["cmdNode"]));
$offset = $_GET["offset"];
$order = $_GET["sort_by"];
$direction = $_GET["sort_order"] ? $_GET['sort_order'] : 'desc';
$tbl->setOrderColumn($order,'order_date');
$tbl->setOrderDirection($direction);
$tbl->setOffset($offset);
$tbl->setLimit($_GET["limit"]);
$tbl->setMaxCount(count($a_result_set));
$tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
$tbl->setData($a_result_set);
$tbl->render();
$this->tpl->setVariable("STATISTIC_TABLE",$tbl->tpl->get());
return true;
}
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPaymentBuyedObjectsGUI::executeCommand | ( | ) |
| ilPaymentBuyedObjectsGUI::ilPaymentBuyedObjectsGUI | ( | &$ | user_obj | ) |
Definition at line 46 of file class.ilPaymentBuyedObjectsGUI.php.
References $ilCtrl, ilPaymentBaseGUI::$tpl, $user_obj, and ilPaymentBaseGUI::ilPaymentBaseGUI().
{
global $ilCtrl,$tpl;
$this->ctrl =& $ilCtrl;
$this->tpl =& $tpl;
$this->ilPaymentBaseGUI();
$this->user_obj =& $user_obj;
}
Here is the call graph for this function:| ilPaymentBuyedObjectsGUI::showItems | ( | ) |
Definition at line 79 of file class.ilPaymentBuyedObjectsGUI.php.
References $counter, __initBookingsObject(), __showStatisticTable(), ilRepositoryExplorer::buildFrameTarget(), ilRepositoryExplorer::buildLinkTarget(), ilObjectFactory::getInstanceByObjId(), ilObjectFactory::getInstanceByRefId(), and sendInfo().
{
include_once "./classes/class.ilRepositoryExplorer.php";
$this->__initBookingsObject();
$this->tpl->addBlockfile('ADM_CONTENT','adm_content','tpl.pay_personal_statistic.html',true);
if(!count($bookings = $this->bookings_obj->getBookingsOfCustomer($this->user_obj->getId())))
{
sendInfo($this->lng->txt('pay_not_buyed_any_object'));
return true;
}
$counter = 0;
foreach($bookings as $booking)
{
$tmp_obj =& ilObjectFactory::getInstanceByRefId($booking['ref_id']);
$tmp_vendor =& ilObjectFactory::getInstanceByObjId($booking['b_vendor_id']);
$tmp_purchaser =& ilObjectFactory::getInstanceByObjId($booking['customer_id']);
$f_result[$counter][] = $booking['transaction_extern'];
$obj_link = ilRepositoryExplorer::buildLinkTarget($booking['ref_id'],$tmp_obj->getType());
$obj_target = ilRepositoryExplorer::buildFrameTarget($tmp_obj->getType(),$booking['ref_id'],$tmp_obj->getId());
$f_result[$counter][] = "<a href=\"../".$obj_link."\" target=\"".$obj_target."\">".$tmp_obj->getTitle()."</a>";
/*
if ($tmp_obj->getType() == "crs")
{
$f_result[$counter][] = "<a href=\"" . ILIAS_HTTP_PATH . "/repository.php?ref_id=" .
$booking["ref_id"] . "\">" . $tmp_obj->getTitle() . "</a>";
}
else if ($tmp_obj->getType() == "lm")
{
$f_result[$counter][] = "<a href=\"" . ILIAS_HTTP_PATH . "/content/lm_presentation.php?ref_id=" .
$booking["ref_id"] . "\" target=\"_blank\">" . $tmp_obj->getTitle() . "</a>";
}
else
{
$f_result[$counter][] = $tmp_obj->getTitle();
}
*/
$f_result[$counter][] = '['.$tmp_vendor->getLogin().']';
$f_result[$counter][] = '['.$tmp_purchaser->getLogin().']';
$f_result[$counter][] = date('Y m d H:i:s',$booking['order_date']);
$f_result[$counter][] = $booking['duration'];
$f_result[$counter][] = $booking['price'];
$payed_access = $booking['payed'] ?
$this->lng->txt('yes') :
$this->lng->txt('no');
$payed_access .= '/';
$payed_access .= $booking['access'] ?
$this->lng->txt('yes') :
$this->lng->txt('no');
$f_result[$counter][] = $payed_access;
unset($tmp_obj);
unset($tmp_vendor);
unset($tmp_purchaser);
++$counter;
}
return $this->__showStatisticTable($f_result);
}
Here is the call graph for this function:| ilPaymentBuyedObjectsGUI::$ctrl |
Definition at line 36 of file class.ilPaymentBuyedObjectsGUI.php.
| ilPaymentBuyedObjectsGUI::$lng |
Reimplemented from ilPaymentBaseGUI.
Definition at line 38 of file class.ilPaymentBuyedObjectsGUI.php.
| ilPaymentBuyedObjectsGUI::$psc_obj = null |
Definition at line 44 of file class.ilPaymentBuyedObjectsGUI.php.
| ilPaymentBuyedObjectsGUI::$user_obj |
Reimplemented from ilPaymentBaseGUI.
Definition at line 39 of file class.ilPaymentBuyedObjectsGUI.php.
Referenced by ilPaymentBuyedObjectsGUI().
1.7.1