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
AfsText Class Reference

Base class for AFS texts which accepts AfsTextVisitorInterface visitors. More...

Inheritance diagram for AfsText:
AfsMatchText AfsStringText AfsTruncateText

Public Member Functions

 __construct ($text)
 Construct instance with appropriate text.
 get_text ()
 Retrieve text.
 accept (AfsTextVisitorInterface $visitor)
 Accept visitors.

Detailed Description

Base class for AFS texts which accepts AfsTextVisitorInterface visitors.

Constructor & Destructor Documentation

__construct (   $text)

Construct instance with appropriate text.

Parameters
$text[in] text associated to the instance.

Reimplemented in AfsTruncateText, AfsMatchText, and AfsStringText.

Member Function Documentation

accept ( AfsTextVisitorInterface  $visitor)

Accept visitors.

Parameters
$visitor[in] visitor which implements AfsTextVisitorInterface.
Returns
value returned from visitor call.
Exceptions
Exceptionwhen necessary method has not been implemented in visitor.
get_text ( )

Retrieve text.

Returns
text.