本文整理汇总了PHP中DatabaseManager::insertValue方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseManager::insertValue方法的具体用法?PHP DatabaseManager::insertValue怎么用?PHP DatabaseManager::insertValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DatabaseManager
的用法示例。
在下文中一共展示了DatabaseManager::insertValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addAction
public function addAction($pActionNotification, $pUser, $forceReload = true)
{
if ($pActionNotification instanceof ActionNotification) {
require_once dirname(__FILE__) . '/DatabaseManager.php';
$databaseManager = new DatabaseManager();
$databaseManager->openTable('notifications', json_decode(DatabaseManager::$table5));
$action = $pActionNotification->getAction();
$timestamp = $pActionNotification->getMaxTimestamp();
$readed = $pActionNotification->getReaded();
if (!empty($pActionNotification->getAdressed())) {
$insert['text'] = array("value" => $pActionNotification->getAdressed());
} else {
$insert['text'] = array("value" => '');
}
$insert['title'] = array("value" => '');
$insert['action'] = array("value" => $action);
$insert['user'] = array("value" => $pUser);
$insert['timestamp'] = array("value" => $timestamp, "type" => "integer");
$insert['type'] = array("value" => 1);
$insert['readed'] = array("value" => $readed);
$insert['icon'] = array("value" => "", "type" => "text");
$databaseManager->insertValue($insert);
if ($forceReload) {
$this->forceReload();
}
}
}
示例2: addJwtSignature
public function addJwtSignature($signature, $name = 'Endgerät', $userid)
{
$databaseAuthtokens = new DatabaseManager();
$json = json_decode(DatabaseManager::$table11);
$databaseAuthtokens->openTable("jwt", $json);
$arrayToken['user'] = array('operator' => '=', 'value' => $userid, 'type' => 'i');
$arrayToken['signature'] = array('operator' => '=', 'value' => $signature, 'type' => 's');
$arrayToken['name'] = array('operator' => '=', 'value' => $name, 'type' => 's');
$resultToken1 = $databaseAuthtokens->insertValue($arrayToken);
return $resultToken1;
}