Antidot PHP API  version 0.16.0
##PHP API to simplify integration of Antidot components
 All Classes Files Functions Variables Groups Pages
Public Member Functions | List of all members
AfsReplyHelperFactory Class Reference

Factory for reply helper. More...

Public Member Functions

 __construct (AfsTextVisitorInterface $visitor=null)
 Constructs new factory instance.
 create ($feed, $reply)
 Creates appropriate reply helper.
 create_replies ($feed, $replies)
 Creates list of reply helpers.

Detailed Description

Factory for reply helper.

Constructor & Destructor Documentation

__construct ( AfsTextVisitorInterface  $visitor = null)

Constructs new factory instance.

Parameters
$visitor[in] visitor used to format title and client data texts.

Member Function Documentation

create (   $feed,
  $reply 
)

Creates appropriate reply helper.

Parameters
$feed[in] name of the feed reply.
$reply[in] JSON decoded reply used to initialize the helper.
Returns
standard or Promote reply helper.
create_replies (   $feed,
  $replies 
)

Creates list of reply helpers.

Parameters
$feed[in] name of the feed reply.
$replies[in] JSON decoded object which may contain replies.
Returns
list of reply helpers.