本文整理匯總了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();
}