The Red Matrix
 All Classes Namespaces Files Functions Variables Pages
conversation.php File Reference

Functions

if(!function_exists('item_extract_images'))
if(!function_exists('item_redir_and_replace_images')) 
localize_item (&$item)
 
 count_descendants ($item)
 
 visible_activity ($item)
 
if(!function_exists('conversation')) best_link_url ($item)
 
if(!function_exists('item_photo_menu'))
if(!function_exists('like_puller'))
if(!function_exists('format_like')) 
status_editor ($a, $x, $popup=false)
 
 get_item_children ($arr, $parent)
 
 sort_item_children ($items)
 
 add_children_to_list ($children, &$arr)
 
 conv_sort ($arr, $order)
 
 sort_thr_created ($a, $b)
 
 sort_thr_created_rev ($a, $b)
 
 sort_thr_commented ($a, $b)
 
 find_thread_parent_index ($arr, $x)
 
 format_location ($item)
 
 render_location_default ($item)
 
 prepare_page ($item)
 

Function Documentation

add_children_to_list (   $children,
$arr 
)
if (!function_exists('conversation')) best_link_url (   $item)

"Render" a conversation or list of items for HTML display. There are two major forms of display:

  • Sequential or unthreaded ("New Item View" or search results)
  • 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.
conv_sort (   $arr,
  $order 
)
count_descendants (   $item)

Count the total of comments on this item and its desendants

find_thread_parent_index (   $arr,
  $x 
)
format_location (   $item)

Referenced by Item\get_template_data().

get_item_children (   $arr,
  $parent 
)
if (!function_exists('item_extract_images')) if (!function_exists('item_redir_and_replace_images')) localize_item ( $item)

Render actions localized

Referenced by api_format_items(), format_notification(), and Item\get_template_data().

prepare_page (   $item)

Referenced by page_content().

render_location_default (   $item)
sort_item_children (   $items)
sort_thr_commented (   $a,
  $b 
)
sort_thr_created (   $a,
  $b 
)
sort_thr_created_rev (   $a,
  $b 
)
if (!function_exists('item_photo_menu')) if (!function_exists('like_puller')) if (!function_exists('format_like')) status_editor (   $a,
  $x,
  $popup = false 
)

Referenced by channel_content(), and network_content().

visible_activity (   $item)