本文整理汇总了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;}