本文整理匯總了PHP中Repository::insert方法的典型用法代碼示例。如果您正苦於以下問題:PHP Repository::insert方法的具體用法?PHP Repository::insert怎麽用?PHP Repository::insert使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Repository
的用法示例。
在下文中一共展示了Repository::insert方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
$parser->proccess_file($doctext);
$info_error = $parser->is_valid();
if (count($info_error) > 0) {
$error = TRUE;
}
}
if ($error == FALSE) {
$ctx = "";
if ($vuser != "") {
$in_charge = $vuser;
} elseif ($ventity != "") {
$in_charge = $ventity;
} else {
$in_charge = 0;
}
$id_inserted = Repository::insert($conn, $title, $doctext, $keywords, $in_charge);
}
}
$sintax = new KDB_Sintax();
$labels_condition = $sintax->_labels_condition;
$labels_actions = $sintax->_labels_actions;
$labels_operators = $sintax->_labels_operators;
$labels_variables = $sintax->_labels_variables;
$help_msgs = array();
$users = Session::get_users_to_assign($conn);
$entities = Session::get_entities_to_assign($conn);
$db->close();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
示例2: _
$info_error[] = _("Error in the 'text' field (missing required field)");
$error = true;
}
}
if (POST('title') != "" && POST('doctext') != "" && $error == false) {
// Get a list of nets from db
if ($vuser != "") {
$user = $vuser;
}
if ($ventity != "") {
$user = $ventity;
}
$title = POST('title');
$doctext = strip_tags(POST('doctext'), '<div><span><ul><li><ol><b><i><u><strike><p><h1><h2><h3><h4><h5><h6><font><br><blockquote>');
$keywords = POST('keywords');
$id_inserted = Repository::insert($conn, $title, $doctext, $keywords, $user);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> <?php
echo gettext("OSSIM Framework");
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<META http-equiv="Pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="../style/style.css"/>
<style type='text/css'>
body { margin: 0px;}
.ossim_success {width: auto;}