![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Promote helper to manager title, abstract and uri of one reply. More...
Public Member Functions | |
__construct ($reply) | |
Constructs new instance. | |
get_type () | |
get the current promote instance type, types are default, banner or redirect | |
get_custom_data ($key=null) | |
Retrieves custom data from promote reply. To call this method, get_type should return 'default'. | |
![]() | |
__construct ($reply, AfsTextVisitorInterface $visitor) | |
Constructs new instance. | |
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. |
Promote helper to manager title, abstract and uri of one reply.
You are highly encouraged to use this helper to format Promote replies.
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 | ) |
Constructs new instance.
$reply | [in] one reply used to initialize the instance. |
Reimplemented in AfsPromoteBannerReplyHelper.
get_custom_data | ( | $key = null | ) |
Retrieves custom data from promote reply. To call this method, get_type should return 'default'.
$key | [in] Identifier of the custom resource. When not specified custom data are returned as key/value pairs. |
Exception | no custom data has been defined. |
get_type | ( | ) |
get the current promote instance type, types are default, banner or redirect
Reimplemented in AfsPromoteBannerReplyHelper.