本文整理汇总了PHP中Options::kioskMode方法的典型用法代码示例。如果您正苦于以下问题:PHP Options::kioskMode方法的具体用法?PHP Options::kioskMode怎么用?PHP Options::kioskMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options::kioskMode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sendData
public function sendData()
{
if (!Options::kioskMode()) {
$this->sendContentType(self::CONTENT_TYPE_TEXT_PLAIN);
$download = $this->getRequestDownload() != 0;
if ($download) {
$this->sendContentDisposition("logs.txt");
}
$this->sendLogs();
} else {
$this->sendStatusAndExit(self::STATUS_FORBIDDEN, "Kiosk mode enabled");
}
}
示例2: printUserDetails
private function printUserDetails()
{
$dbh = $this->dbh();
$typeId = $this->getSessionTypeFilter();
$loghostId = $this->getSessionLoghostFilter();
$networkId = $this->getSessionNetworkFilter();
$serviceId = $this->getSessionServiceFilter();
$userId = $this->getRequestUser();
$select = $dbh->prepare("SELECT a.id, a.user, a.statusid " . "FROM user a " . "WHERE a.id = ?");
$select->bindParam(1, $userId, PDO::PARAM_STR);
$select->execute();
$select->bindColumn(1, $userId, PDO::PARAM_STR);
$select->bindColumn(2, $user, PDO::PARAM_STR);
$select->bindColumn(3, $statusId, PDO::PARAM_STR);
if ($select->fetch(PDO::FETCH_BOUND) !== false) {
$l12n = $this->l12n();
$this->beginDetailsSection();
$this->beginDetails1();
$this->printImgUserStatus("icon128", $statusId);
$this->endDetails1();
$this->beginDetails2();
$this->beginDetailsTable();
$this->beginDetailsTableElement($l12n->t("User"));
if (!Options::kioskMode()) {
Html::out($user);
} else {
Html::out("********");
}
$this->endDetailsTableElement();
$this->beginDetailsTableElement($l12n->t("Logs"));
$this->printLogLinks("icon16", $typeId, $loghostId, $networkId, $serviceId, "*", "*", $userId);
$this->endDetailsTableElement();
$this->endDetailsTable();
$this->endDetails2();
$this->endDetailsSection();
}
}
示例3: printEventUser
protected function printEventUser($userId, $user, $statusId, $typeId, $loghostId, $networkId, $serviceId)
{
if ($user != "") {
print "<td><a href=\"?cmd=viewuser&user={$userId}&typefilter={$typeId}&loghostfilter={$loghostId}&networkfilter={$networkId}&servicefilter={$serviceId}\">";
$this->printImgUserStatus("icon16", $statusId);
if (!Options::kioskMode()) {
Html::out(" {$user}");
} else {
Html::out(" ********");
}
print "</a></td>";
} else {
print "<td class=\"center\">";
Html::out("-");
print "</td>";
}
}