![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Base class for replyset helpers. More...
Public Member Functions | |
__construct ($reply_set, AfsHelperConfiguration $config, AfsReplyHelperFactory $factory) | |
Construct new replyset helper instance. | |
get_meta () | |
Retrieves meta data object. | |
has_reply () | |
Checks whether reply set contains at least one reply. | |
get_nb_replies () | |
Retrieve number of replies for current page. | |
get_replies () | |
Retrieves all replies of current page. | |
format () | |
Retrieves replyset as array. | |
![]() | |
__get ($name) | |
Simple property helper. |
Base class for replyset helpers.
__construct | ( | $reply_set, | |
AfsHelperConfiguration | $config, | ||
AfsReplyHelperFactory | $factory | ||
) |
Construct new replyset helper instance.
$reply_set | [in] one reply from decoded json reply. |
$config | [in] helper configuration object (see AfsHelperConfiguration). |
$factory | [in] used to create appropriate reply helper. |
format | ( | ) |
Retrieves replyset as array.
All data are store in key => value
format:
meta:
array of meta data (AfsMetaHelper::format), nb_replies:
number of replies on the current page. replies:
standard or Promote reply.Reimplemented in AfsReplysetHelper.
get_meta | ( | ) |
Retrieves meta data object.
get_nb_replies | ( | ) |
Retrieve number of replies for current page.
you can retrieve total number of replies through get_meta()->get_total_items()
.
get_replies | ( | ) |
Retrieves all replies of current page.
You can loop on each reply:
has_reply | ( | ) |
Checks whether reply set contains at least one reply.