本文整理汇总了PHP中Topic::SetId方法的典型用法代码示例。如果您正苦于以下问题:PHP Topic::SetId方法的具体用法?PHP Topic::SetId怎么用?PHP Topic::SetId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Topic
的用法示例。
在下文中一共展示了Topic::SetId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Topic
$topic->SetLevel($topc_level);
$topic->SetUser($topc_user_id);
$topic->SetTopic($topc_topc_id);
if ($topic->Update()) {
$message_position = 7;
$message = $screen_module_name . " alterado com sucesso.";
} else {
$message_position = 7;
$message = "Problemas na operação.";
}
}
}
if ($action == 4) {
$topic = new Topic();
$topic->SetDatabase($database);
$topic->SetId($topc_id);
if ($topic->Delete()) {
$date = new Date();
$message_position = 7;
$message = $screen_module_name . " excluído com sucesso.";
$topc_id = "";
$topc_title = "";
$topc_text = "";
$topc_date = $date->GetNow();
$topc_level = "";
$topc_user_id = $guardian->GetUserId();
$topc_topc_id = "";
} else {
$message_position = 7;
$message = "Problemas na operação.";
}
示例2: Topic
<?php
$children = new Topic();
$children->SetDatabase($database);
$children->SetTopic($data["topc_id"]);
$result0 = $children->SelectByTopic();
while ($data0 = $database->FetchArray($result0)) {
$users_info = new UserInfo();
$users_info->SetDatabase($database);
$users_info->SetUser($data0["topc_user_id"]);
$users_info->SelectByUser();
$messages = new Message();
$messages->SetDatabase($database);
$messages->SetTopic($data0["topc_id"]);
$p_topic = new Topic();
$p_topic->SetDatabase($database);
$p_topic->SetId($data0["topc_id"]);
$p_topic->SelectById();
?>
<tr>
<td bgcolor="#FFFFFF" width="50%" valign="top" align="left">
<a href="/pages/pgForumMessages.php?p_topc_id=<?php
echo $data0["topc_id"];
?>
"><?php
echo $data0["topc_title"];
?>
</a><br>
</td>
<td bgcolor="#FFFFFF" width="10%" valign="middle" align="center">
<?php
示例3: Topic
* Last Updated: October 01, 2007
*/
$module_name = "forum";
require '../../schifers/constants/cdConstants.php';
require '../../' . $WEB_SITE . 'src/cdDatabase.php';
require '../../' . $WEB_SITE . 'src/cdDate.php';
require '../../' . $WEB_SITE . 'src/cdUser.php';
require '../../' . $WEB_SITE . 'src/cdSession.php';
require '../../' . $WEB_SITE . 'src/cdGuardian.php';
require '../../' . $WEB_SITE . 'src/cdTopic.php';
if (isset($_GET["p_topc_id"])) {
$p_topc_id = $_GET["p_topc_id"];
}
$p_topic = new Topic();
$p_topic->SetDatabase($database);
$p_topic->SetId($p_topc_id);
$p_topic->SelectById();
$p_topic->Hit();
?>
<html>
<head>
<title>Schifer's</title>
<link rel="stylesheet" type="text/css" href="/schifers/css/schifers.css">
</head>
<body bgcolor="#FFFFFF">
<?php
require '../../' . $WEB_SITE . 'blocks/blTitle.php';
?>