![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Helper to manager title, abstract and uri of one reply. More...
Public Member Functions | |
__construct ($reply, AfsTextVisitorInterface $visitor=null) | |
Construct new instance. | |
has_clientdata () | |
Checks whether at least one client data is defined. | |
get_clientdatas () | |
Retrieves client data manager. | |
get_clientdata ($id='main') | |
Retrieves specific client data. | |
has_geo_data () | |
check if geo data exists in reply set | |
get_geo_data () | |
return the geo data field in current reply set | |
![]() | |
get_title () | |
Retrieves formatted title reply. | |
get_abstract () | |
Retrieves formatted abstract reply. | |
get_uri () | |
Retrieves URI of the document. | |
format () | |
Retrieves reply data as array. | |
![]() | |
__get ($name) | |
Simple property helper. |
Helper to manager title, abstract and uri of one reply.
You are highly encouraged to use this helper to format each reply.
This helper use same visitor for both title and abstract reply. If none is defined while constructing instance, default implementation is used (see AfsTextVisitor).
In order to deal with client data, you should have to use specific AfsClientDataManager.
__construct | ( | $reply, | |
AfsTextVisitorInterface | $visitor = null |
||
) |
Construct new instance.
$reply | [in] should correspond to one reply. |
$visitor | [in] (optional) visitor used to traverse title and abstract reply texts. Default implementation is used (AfsTextVisitor) when none is provided. |
Reimplemented from AfsBaseReplyHelper.
get_clientdata | ( | $id = 'main' | ) |
Retrieves specific client data.
$id | [in] Id of the client data to retrieve (default: 'main'). |
OutOfBoundsException | when required client data is not found. |
get_clientdatas | ( | ) |
Retrieves client data manager.
Exception | when no client data is available. |
get_geo_data | ( | ) |
return the geo data field in current reply set
has_clientdata | ( | ) |
Checks whether at least one client data is defined.
True
when one or more clientdatas are available, false
otherwise. has_geo_data | ( | ) |
check if geo data exists in reply set