当前位置: 首页>>代码示例>>PHP>>正文


PHP Topic::SetTopic方法代码示例

本文整理汇总了PHP中Topic::SetTopic方法的典型用法代码示例。如果您正苦于以下问题:PHP Topic::SetTopic方法的具体用法?PHP Topic::SetTopic怎么用?PHP Topic::SetTopic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Topic的用法示例。


在下文中一共展示了Topic::SetTopic方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Topic

						</td>
						<td bgcolor="#AAAAAA" width="10%" valign="top" align="center">
							Autor
						</td>
						<td bgcolor="#AAAAAA" width="10%" valign="top" align="center">
							Visualizações
						</td>
						<td bgcolor="#AAAAAA" width="20%" valign="top" align="center">
							Última Mensagem
						</td>
					</tr>

<?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();
        ?>
开发者ID:googlecode-mirror,项目名称:schifers,代码行数:30,代码来源:pgForumTopics.php

示例2: Topic

$result0 = $areas->SelectByLevel();
while ($data0 = $database->FetchArray($result0)) {
    ?>

					<tr>
						<td bgcolor="#DDDDDD" width="100%" valign="top" align="left" colspan="4">
							<?php 
    echo $data0["topc_title"];
    ?>
						</td>
					</tr>

<?php 
    $forums = new Topic();
    $forums->SetDatabase($database);
    $forums->SetTopic($data0["topc_id"]);
    $result1 = $forums->SelectByTopic();
    while ($data1 = $database->FetchArray($result1)) {
        ?>

					<tr>
						<td bgcolor="#FFFFFF" width="60%" valign="top" align="left">
							<a href="/pages/pgForumTopics.php?p_topc_id=<?php 
        echo $data1["topc_id"];
        ?>
"><?php 
        echo $data1["topc_title"];
        ?>
</a> - <?php 
        echo $data1["topc_text"];
        ?>
开发者ID:googlecode-mirror,项目名称:schifers,代码行数:31,代码来源:pgForum.php

示例3: Date

     $date = new Date();
     $date->SetConverted($topc_date);
     $date->ConvertToDate();
     if ($date->VerifyDate()) {
         $message = $date->GetMessage();
         $message_position = 2;
     } else {
         $topic = new Topic();
         $topic->SetDatabase($database);
         $topic->SetId($topc_id);
         $topic->SetTitle(str_replace("\"", "\\\"", $topc_title));
         $topic->SetText(str_replace("\"", "\\\"", $topc_text));
         $topic->SetDate($date->GetDate());
         $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();
开发者ID:googlecode-mirror,项目名称:schifers,代码行数:31,代码来源:pgTopic.php


注:本文中的Topic::SetTopic方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。