當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。