/** * Get the parsed text of this Trigger. * * @return String * The text to show if this Trigger matches. */ public function getText() { module_load_include('inc.php', 'closedquestion', 'lib/XmlLib'); return cq_replace_tags($this->text, $this->context); }
/** * Getter for the feedback text. * * @return String * The text to show as feedback. */ public function getText() { module_load_include('inc.php', 'closedquestion', 'lib/XmlLib'); if ($this->block) { $block = $this->block; if (drupal_strtolower($block) == 'lastmatchedid') { $block = $this->topParent->lastMatchedId; } return '<div class="cqFbItem block-' . $block . '">' . cq_replace_tags($this->text, $this->context) . '</div>'; } else { return cq_replace_tags($this->text, $this->context); } }