本文整理汇总了PHP中ilTable2GUI::render方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTable2GUI::render方法的具体用法?PHP ilTable2GUI::render怎么用?PHP ilTable2GUI::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTable2GUI
的用法示例。
在下文中一共展示了ilTable2GUI::render方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
public function render()
{
global $ilCtrl;
$url = $ilCtrl->getLinkTarget($this->getParentObject(), "saveCommentForLearners", "", true, false);
$this->overlay_tpl->setVariable("AJAX_URL", $url);
return parent::render() . $this->overlay_tpl->get();
}
示例2: render
/**
* get HTML
*
* @param
* @return
*/
function render()
{
global $ilCtrl, $lng;
$mtpl = new ilTemplate("tpl.media_sel_table.html", true, true, "Modules/MediaPool");
$pre = "";
if ($this->current_folder != $this->tree->getRootId() && !$this->all_objects) {
$path = $this->tree->getPathFull($this->current_folder);
include_once "./Services/Locator/classes/class.ilLocatorGUI.php";
$loc = new ilLocatorGUI();
foreach ($path as $p) {
$ilCtrl->setParameter($this->parent_obj, $this->folder_par, $p["child"]);
$title = $p["title"];
if ($this->tree->getRootId() == $p["child"]) {
$title = ilObject::_lookupTitle($this->media_pool->getId());
}
$loc->addItem($title, $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));
}
$ilCtrl->setParameter($this->parent_obj, $this->folder_par, $this->current_folder);
$mtpl->setCurrentBlock("loc");
$mtpl->setVariable("LOC", $loc->getHTML());
$mtpl->parseCurrentBlock();
}
$mtpl->setVariable("TABLE", parent::render());
return $mtpl->get();
}
示例3: render
/**
* @return string
*/
public function render()
{
$index_table_tpl = new ilTemplate("tpl.index_table.html", true, true, "./Customizing/global/plugins/Libraries/ActiveRecord/");
if ($this->getToolbar()) {
$index_table_tpl->setVariable("TOOLBAR", $this->getToolbar()->getHTML());
}
$index_table_tpl->setVariable("TABLE", parent::render());
return $index_table_tpl->get();
}