本文整理汇总了PHP中H::getJSONData方法的典型用法代码示例。如果您正苦于以下问题:PHP H::getJSONData方法的具体用法?PHP H::getJSONData怎么用?PHP H::getJSONData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类H
的用法示例。
在下文中一共展示了H::getJSONData方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page
public function page()
{
if (count(\H::getJSONData("keyrings")) != 0) {
$this->set = true;
}
return "auto";
}
示例2: addPage
public function addPage($site, $name, $page)
{
$data = \H::getJSONData("{$site}Pages");
var_dump($data);
$name = strtolower($name);
$pages[$name] = $page;
saveData("{$site}Pages", json_encode($pages));
return true;
}
示例3: foreach
<div class='contents'>
<h1>KeyRing</h1>
<p>Store your sensitive informations securely.</p>
<?php
if ($this->set) {
echo "<div style='margin-left: 20px;'>";
foreach (\H::getJSONData("keyrings") as $master => $null) {
$name = getData("master_{$master}" . "_name");
echo $this->l("/view?id={$master}", $name, "class='button red'") . "<cl/>";
}
echo "</div>";
} else {
sme("No KeyRings", "You haven't created any keyrings");
}
?>
<a href='<?php
echo APP_URL;
?>
/new-master' class='button green'>Create A New KeyRing</a>
</div>
示例4: load
public function load()
{
$dbinfo = \H::getJSONData("credentials");
$this->table = $dbinfo['db_table'];
require_once APP_DIR . "/src/Inc/logsys.config.php";
}
示例5: trim
<div class='contents'>
<h1>KeyRing</h1>
<?php
$id = trim($_GET['id']);
$keyrings = \H::getJSONData("keyrings");
if (isset($keyrings[])) {
}
?>
</div>
示例6: array
<?php
if (isset($_POST['network']) && isset($_POST['id']) && isset($this->available_networks[$_POST['network']])) {
H::saveJSONData("accounts", array($_POST['network'] => array($_POST['id'] => array(false))));
var_dump(H::getJSONData("accounts"));
}