/** @brief Constructs new instance. * @param $reply [in] one reply used to initialize the instance. */ public function __construct($reply) { parent::__construct($reply, new AfsRawTextVisitor()); $xmlstring = $reply->clientData[0]->contents; $xmlstring = '<promote>' . $xmlstring . '</promote>'; $clientdata = clone $reply->clientData[0]; $clientdata->contents = $xmlstring; $clientdata = new AfsXmlClientDataHelper($clientdata); $this->clientdata = $clientdata; }
/** @brief Construct new instance. * * @param $reply [in] should correspond to one reply. * @param $visitor [in] (optional) visitor used to traverse title and * abstract reply texts. Default implementation is used * (@a AfsTextVisitor) when none is provided. */ public function __construct($reply, AfsTextVisitorInterface $visitor = null) { parent::__construct($reply, is_null($visitor) ? new AfsTextVisitor() : $visitor); }