本文整理汇总了PHP中ilObjectGUI::viewObject方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjectGUI::viewObject方法的具体用法?PHP ilObjectGUI::viewObject怎么用?PHP ilObjectGUI::viewObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjectGUI
的用法示例。
在下文中一共展示了ilObjectGUI::viewObject方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
/**
* view content object
*/
function view()
{
if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
$this->prepareOutput();
parent::viewObject();
} else {
$this->viewObject();
}
}
示例2: viewObject
function viewObject()
{
if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
parent::viewObject();
} else {
}
}
示例3: viewObject
function viewObject()
{
global $rbacsystem;
if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
parent::viewObject();
return;
}
if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
}
示例4: view
/**
* view object content (repository/workspace switch)
*/
public function view()
{
switch ($this->id_type) {
case self::REPOSITORY_NODE_ID:
case self::REPOSITORY_OBJECT_ID:
return parent::viewObject();
case self::WORKSPACE_NODE_ID:
case self::WORKSPACE_OBJECT_ID:
return $this->render();
case self::OBJECT_ID:
case self::PORTFOLIO_OBJECT_ID:
// :TODO: should this ever occur? do nothing or edit() ?!
break;
}
}
示例5: viewObject
function viewObject()
{
global $rbacsystem;
if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
parent::viewObject();
return;
}
if (!$rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
// edit button
$this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
$this->tpl->setCurrentBlock("btn_cell");
$this->tpl->setVariable("BTN_LINK", "ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=" . $this->object->getRefID());
$this->tpl->setVariable("BTN_TARGET", " target=\"" . ilFrameTargetInfo::_getFrame("MainContent") . "\" ");
$this->tpl->setVariable("BTN_TXT", $this->lng->txt("view"));
$this->tpl->parseCurrentBlock();
//parent::viewObject();
}