The Red Matrix
|
Public Member Functions | |
__construct ($data) | |
get_template_data ($alike, $dlike, $thread_level=1) | |
get_id () | |
is_threaded () | |
add_child ($item) | |
get_child ($id) | |
get_children () | |
remove_child ($item) | |
set_conversation ($conv) | |
get_conversation () | |
get_data () | |
get_data_value ($name) | |
Public Member Functions inherited from BaseObject | |
get_app () | |
Protected Member Functions | |
set_parent ($item) | |
remove_parent () | |
get_parent () | |
check_wall_to_wall () | |
Private Member Functions | |
get_template () | |
is_toplevel () | |
is_writable () | |
is_commentable () | |
count_descendants () | |
get_comment_box_template () | |
get_comment_box ($indent) | |
get_redirect_url () | |
is_wall_to_wall () | |
get_owner_url () | |
get_owner_photo () | |
get_owner_name () | |
is_visiting () | |
Private Attributes | |
$data = array() | |
$template = 'conv_item.tpl' | |
$comment_box_template = 'comment_item.tpl' | |
$toplevel = false | |
$writable = false | |
$commentable = false | |
$children = array() | |
$parent = null | |
$conversation = null | |
$redirect_url = null | |
$owner_url = '' | |
$owner_photo = '' | |
$owner_name = '' | |
$wall_to_wall = false | |
$threaded = false | |
$visiting = false | |
$observer = null | |
$channel = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseObject | |
static | set_app ($app) |
An item
Item::__construct | ( | $data | ) |
Item::add_child | ( | $item | ) |
Add a child item
Referenced by __construct().
|
protected |
Check if we are a wall to wall item and set the relevant properties
Referenced by get_template_data().
|
private |
Count the total of our descendants
Referenced by get_template_data().
Item::get_child | ( | $id | ) |
Get a child by its ID
Referenced by add_child().
Item::get_children | ( | ) |
Get all our children
Referenced by count_descendants(), get_child(), get_template_data(), remove_child(), and set_conversation().
|
private |
Get the comment box
Returns: _ The comment box string (empty if no comment box) _ false on failure
Referenced by get_template_data().
|
private |
Get the template for the comment box
Referenced by get_comment_box().
Item::get_conversation | ( | ) |
get conversation
Referenced by check_wall_to_wall(), get_comment_box(), and get_template_data().
Item::get_data | ( | ) |
Item::get_data_value | ( | $name | ) |
Get a data value
Returns: _ value on success _ false on failure
Referenced by __construct(), check_wall_to_wall(), get_id(), and get_template_data().
Item::get_id | ( | ) |
Referenced by __construct(), get_comment_box(), and get_template_data().
|
private |
Referenced by get_template_data().
|
private |
Referenced by get_template_data().
|
private |
Referenced by get_template_data().
|
protected |
Get parent item
Referenced by set_parent().
|
private |
|
private |
Get template
Referenced by get_template_data().
Item::get_template_data | ( | $alike, | |
$dlike, | |||
$thread_level = 1 |
|||
) |
Get data in a form usable by a conversation template
Returns: _ The data requested on success _ false on failure
|
private |
Referenced by get_comment_box(), and get_template_data().
Item::is_threaded | ( | ) |
Referenced by get_comment_box(), and get_template_data().
|
private |
Check if this is a toplevel post
Referenced by check_wall_to_wall(), get_comment_box(), and get_template_data().
|
private |
|
private |
|
private |
Check if this is writable
Referenced by get_comment_box().
Item::remove_child | ( | $item | ) |
Remove a child
|
protected |
Remove our parent
Item::set_conversation | ( | $conv | ) |
set conversation
Referenced by set_parent().
|
protected |
Set our parent
|
private |
|
private |
Referenced by count_descendants(), get_children(), and get_template_data().
|
private |
Referenced by get_comment_box_template().
|
private |
Referenced by is_commentable().
|
private |
Referenced by get_conversation().
|
private |
Referenced by __construct(), and get_data().
|
private |
Referenced by get_template_data().
|
private |
Referenced by get_owner_name().
|
private |
Referenced by get_owner_photo().
|
private |
Referenced by get_owner_url().
|
private |
Referenced by get_parent(), and set_parent().
|
private |
Referenced by get_redirect_url().
|
private |
Referenced by get_comment_box(), and get_template().
|
private |
Referenced by is_threaded().
|
private |
Referenced by is_toplevel().
|
private |
Referenced by is_visiting().
|
private |
Referenced by is_wall_to_wall().
|
private |
Referenced by __construct(), and is_writable().