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