本文整理汇总了PHP中ObjectLock::setReadOnlyProfile方法的典型用法代码示例。如果您正苦于以下问题:PHP ObjectLock::setReadOnlyProfile方法的具体用法?PHP ObjectLock::setReadOnlyProfile怎么用?PHP ObjectLock::setReadOnlyProfile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectLock
的用法示例。
在下文中一共展示了ObjectLock::setReadOnlyProfile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (!$item->can($_GET["id"], READ)) {
exit;
}
}
}
}
}
$notvalidoptions = array('_glpi_tab', '_itemtype', 'sort', 'order', 'withtemplate');
$options = $_GET;
foreach ($notvalidoptions as $key) {
if (isset($options[$key])) {
unset($options[$key]);
}
}
if (isset($options['locked'])) {
ObjectLock::setReadOnlyProfile();
}
CommonGLPI::displayStandardTab($item, $_GET['_glpi_tab'], $_GET["withtemplate"], $options);
if (isset($_GET['full_page_tab'])) {
echo "<div class='center' id='debugajax'>";
echo "<a href='" . htmlentities($_SERVER['REQUEST_URI']) . "' class='vsubmit'>Reload</a>";
echo "</div>";
// I think that we should display this warning, because tabs are not prepare
// for being used full space ...
if (!isset($_SESSION['glpi_warned_about_full_page_tab'])) {
// Debug string : not really need translation.
$msg = 'WARNING: full page tabs are only for debug/validation purpose !\\n';
$msg .= 'Actions on this page may have undefined result.';
echo "<script type='text/javascript' >\n";
echo "alert('{$msg}')";
echo "</script>";