<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>The Red Project: include/conversation.php File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="r!-64.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">The Red Project </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('conversation_8php.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">conversation.php File Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:afea815dd1768e8417d2b30be53e9e0b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('item_extract_images')) <br class="typebreak"/> <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('item_redir_and_replace_images')) </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#afea815dd1768e8417d2b30be53e9e0b4">localize_item</a> (&$item)</td></tr> <tr class="separator:afea815dd1768e8417d2b30be53e9e0b4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab2383dff4f823e580399ff469d90ab19"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#ab2383dff4f823e580399ff469d90ab19">count_descendants</a> ($item)</td></tr> <tr class="separator:ab2383dff4f823e580399ff469d90ab19"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7eeaaf44506815576f3bd80053ef52c3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a7eeaaf44506815576f3bd80053ef52c3">visible_activity</a> ($item)</td></tr> <tr class="separator:a7eeaaf44506815576f3bd80053ef52c3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a32e7750ae6adbfdd1f227f6e89221ce3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('conversation')) </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a32e7750ae6adbfdd1f227f6e89221ce3">best_link_url</a> ($item)</td></tr> <tr class="separator:a32e7750ae6adbfdd1f227f6e89221ce3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aedf008b9eac87f693d7dcc1a01404d85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('item_photo_menu')) <br class="typebreak"/> <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('like_puller')) <br class="typebreak"/> <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a>(!function_exists('format_like')) </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#aedf008b9eac87f693d7dcc1a01404d85">status_editor</a> ($a, $<a class="el" href="boot_8php.html#a01353c9abebc3544ea080ac161729632">x</a>, $popup=false)</td></tr> <tr class="separator:aedf008b9eac87f693d7dcc1a01404d85"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7f6ef0dfa554bacf620e84c18d386e67"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a7f6ef0dfa554bacf620e84c18d386e67">get_item_children</a> ($arr, $parent)</td></tr> <tr class="separator:a7f6ef0dfa554bacf620e84c18d386e67"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae996eb116d397a2c6396c312d7b98664"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#ae996eb116d397a2c6396c312d7b98664">sort_item_children</a> ($items)</td></tr> <tr class="separator:ae996eb116d397a2c6396c312d7b98664"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad3e1d4b15e7d6d026ee182edd58f692b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#ad3e1d4b15e7d6d026ee182edd58f692b">add_children_to_list</a> ($children, &$arr)</td></tr> <tr class="separator:ad3e1d4b15e7d6d026ee182edd58f692b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abed85a41f1160598de880b84021c9cf7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#abed85a41f1160598de880b84021c9cf7">conv_sort</a> ($arr, $order)</td></tr> <tr class="separator:abed85a41f1160598de880b84021c9cf7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac55e070f65f46fcc8e269f7896be4c7d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#ac55e070f65f46fcc8e269f7896be4c7d">sort_thr_created</a> ($a, $b)</td></tr> <tr class="separator:ac55e070f65f46fcc8e269f7896be4c7d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9cc2a679606da9e535a06433f9f553a0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a9cc2a679606da9e535a06433f9f553a0">sort_thr_created_rev</a> ($a, $b)</td></tr> <tr class="separator:a9cc2a679606da9e535a06433f9f553a0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9f909b8885259b79c6ac8da93afd8f11"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a9f909b8885259b79c6ac8da93afd8f11">sort_thr_commented</a> ($a, $b)</td></tr> <tr class="separator:a9f909b8885259b79c6ac8da93afd8f11"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae59703b07ce2ddf627b4172ff26058b6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#ae59703b07ce2ddf627b4172ff26058b6">find_thread_parent_index</a> ($arr, $<a class="el" href="boot_8php.html#a01353c9abebc3544ea080ac161729632">x</a>)</td></tr> <tr class="separator:ae59703b07ce2ddf627b4172ff26058b6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0891aaa4492cba2b51eda12fe01957f3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a0891aaa4492cba2b51eda12fe01957f3">format_location</a> ($item)</td></tr> <tr class="separator:a0891aaa4492cba2b51eda12fe01957f3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a40b9b5e7825bc73932a32e667f05e6f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a40b9b5e7825bc73932a32e667f05e6f2">render_location_default</a> ($item)</td></tr> <tr class="separator:a40b9b5e7825bc73932a32e667f05e6f2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4b0888b0f26e1c284a4341fe5fd04f0c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="conversation_8php.html#a4b0888b0f26e1c284a4341fe5fd04f0c">prepare_page</a> ($item)</td></tr> <tr class="separator:a4b0888b0f26e1c284a4341fe5fd04f0c"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ad3e1d4b15e7d6d026ee182edd58f692b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">add_children_to_list </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$children</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">& </td> <td class="paramname"><em>$arr</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a32e7750ae6adbfdd1f227f6e89221ce3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('conversation')) best_link_url </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>"Render" a conversation or list of items for HTML display. There are two major forms of display:</p> <ul> <li>Sequential or unthreaded ("New Item View" or search results)</li> <li>conversation view The $mode parameter decides between the various renderings and also figures out how to determine page owner and other contextual items that are based on unique features of the calling module. </li> </ul> </div> </div> <a class="anchor" id="abed85a41f1160598de880b84021c9cf7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">conv_sort </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$arr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$order</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Referenced by <a class="el" href="channel_8php.html#a9c6a6179e0e626398ebecc6151905ef1">channel_content()</a>, <a class="el" href="display_8php.html#a37137c98d47bf3306f4c2bb9f5b60de0">display_content()</a>, <a class="el" href="mod_2network_8php.html#a43f2f29b90c5e29072c561934bc8f8b4">network_content()</a>, and <a class="el" href="search_8php.html#a9f726b45d369bd7f94f5be4d0c99636f">search_content()</a>.</p> </div> </div> <a class="anchor" id="ab2383dff4f823e580399ff469d90ab19"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">count_descendants </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Count the total of comments on this item and its desendants </p> </div> </div> <a class="anchor" id="ae59703b07ce2ddf627b4172ff26058b6"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">find_thread_parent_index </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$arr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$x</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a0891aaa4492cba2b51eda12fe01957f3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">format_location </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Referenced by <a class="el" href="classItem.html#ad5dcbe0b94cb2d5719bc5b6bd8ad60c8">Item\get_template_data()</a>.</p> </div> </div> <a class="anchor" id="a7f6ef0dfa554bacf620e84c18d386e67"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">get_item_children </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$arr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$parent</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="afea815dd1768e8417d2b30be53e9e0b4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('item_extract_images')) <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('item_redir_and_replace_images')) localize_item </td> <td>(</td> <td class="paramtype">& </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Render actions localized </p> <p>Referenced by <a class="el" href="include_2api_8php.html#a4c6fb9fb5203aa60f4b3afd4521db8ea">api_format_items()</a>, <a class="el" href="include_2notify_8php.html#a0e61728e487df50c72e6434f911a57d3">format_notification()</a>, and <a class="el" href="classItem.html#ad5dcbe0b94cb2d5719bc5b6bd8ad60c8">Item\get_template_data()</a>.</p> </div> </div> <a class="anchor" id="a4b0888b0f26e1c284a4341fe5fd04f0c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prepare_page </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Referenced by <a class="el" href="page_8php.html#a91a5f649f68406149108bded1dc90b22">page_content()</a>.</p> </div> </div> <a class="anchor" id="a40b9b5e7825bc73932a32e667f05e6f2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">render_location_default </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="ae996eb116d397a2c6396c312d7b98664"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sort_item_children </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$items</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a9f909b8885259b79c6ac8da93afd8f11"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sort_thr_commented </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$b</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="ac55e070f65f46fcc8e269f7896be4c7d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sort_thr_created </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$b</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="a9cc2a679606da9e535a06433f9f553a0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sort_thr_created_rev </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$b</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a class="anchor" id="aedf008b9eac87f693d7dcc1a01404d85"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('item_photo_menu')) <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('like_puller')) <a class="el" href="style_8php.html#a0a473a25349f07563d6c56d14031f02a">if</a> (!function_exists('format_like')) status_editor </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>$popup</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Referenced by <a class="el" href="channel_8php.html#a9c6a6179e0e626398ebecc6151905ef1">channel_content()</a>, and <a class="el" href="mod_2network_8php.html#a43f2f29b90c5e29072c561934bc8f8b4">network_content()</a>.</p> </div> </div> <a class="anchor" id="a7eeaaf44506815576f3bd80053ef52c3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">visible_activity </td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><em>$item</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Referenced by <a class="el" href="classItem.html#a248f45871ecfe82a08d1d4c0769b2eb2">Item\__construct()</a>, and <a class="el" href="conversation_8php.html#ab2383dff4f823e580399ff469d90ab19">count_descendants()</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content -->