The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
Zotlabs\Lib\ThreadStream Class Reference

Public Member Functions

 __construct ($mode, $preview, $uploadable, $prepared_item= '')
 
 get_mode ()
 
 is_writable ()
 
 is_commentable ()
 
 is_uploadable ()
 
 is_preview ()
 
 get_profile_owner ()
 
 set_profile_owner ($uid)
 
 get_observer ()
 
 get_cipher ()
 
 add_thread ($item)
 
 get_template_data ($conv_responses)
 

Public Attributes

 $reload = ''
 

Private Member Functions

 set_mode ($mode)
 
 get_thread ($id)
 

Private Attributes

 $threads = array()
 
 $mode = null
 
 $observer = null
 
 $writable = false
 
 $commentable = false
 
 $uploadable = false
 
 $profile_owner = 0
 
 $preview = false
 
 $prepared_item = ''
 
 $cipher = 'aes256'
 

Detailed Description

A list of threads

Constructor & Destructor Documentation

Zotlabs\Lib\ThreadStream::__construct (   $mode,
  $preview,
  $uploadable,
  $prepared_item = '' 
)

Member Function Documentation

Zotlabs\Lib\ThreadStream::add_thread (   $item)

Add a thread to the conversation

Returns: _ The inserted item on success _ false on failure

Zotlabs\Lib\ThreadStream::get_cipher ( )
Zotlabs\Lib\ThreadStream::get_mode ( )
Zotlabs\Lib\ThreadStream::get_observer ( )
Zotlabs\Lib\ThreadStream::get_profile_owner ( )

Get profile owner

Zotlabs\Lib\ThreadStream::get_template_data (   $conv_responses)

Get data in a form usable by a conversation template

We should find a way to avoid using those arguments (at least most of them)

Returns: _ The data requested on success _ false on failure

Zotlabs\Lib\ThreadStream::get_thread (   $id)
private

Get a thread based on its item id

Returns: _ The found item on success _ false on failure

Referenced by Zotlabs\Lib\ThreadStream\add_thread().

Zotlabs\Lib\ThreadStream::is_commentable ( )
Zotlabs\Lib\ThreadStream::is_preview ( )

Check if page is a preview

Zotlabs\Lib\ThreadStream::is_uploadable ( )
Zotlabs\Lib\ThreadStream::is_writable ( )

Check if page is writable

Zotlabs\Lib\ThreadStream::set_mode (   $mode)
private

Set the mode we'll be displayed on

Referenced by Zotlabs\Lib\ThreadStream\__construct(), and Zotlabs\Lib\ThreadStream\set_profile_owner().

Zotlabs\Lib\ThreadStream::set_profile_owner (   $uid)

Member Data Documentation

Zotlabs\Lib\ThreadStream::$cipher = 'aes256'
private
Zotlabs\Lib\ThreadStream::$commentable = false
private
Zotlabs\Lib\ThreadStream::$observer = null
private
Zotlabs\Lib\ThreadStream::$prepared_item = ''
private
Zotlabs\Lib\ThreadStream::$preview = false
private
Zotlabs\Lib\ThreadStream::$profile_owner = 0
private
Zotlabs\Lib\ThreadStream::$reload = ''
Zotlabs\Lib\ThreadStream::$threads = array()
private
Zotlabs\Lib\ThreadStream::$uploadable = false
private
Zotlabs\Lib\ThreadStream::$writable = false
private

The documentation for this class was generated from the following file: