/** * @param Object\Concrete $object * @return string */ public function preGetData($object, $params = array()) { $data = ""; if ($object instanceof Object\Concrete) { $data = $object->{$this->getName()}; } else { if ($object instanceof Object\Localizedfield || $object instanceof Object\Classificationstore) { $data = $params["data"]; } else { if ($object instanceof Object\Fieldcollection\Data\AbstractData) { $data = $object->{$this->getName()}; } else { if ($object instanceof Object\Objectbrick\Data\AbstractData) { $data = $object->{$this->getName()}; } } } } return Text::wysiwygText($data); }
/** * @see Document\Tag\TagInterface::frontend * @return string */ public function frontend() { return Text::wysiwygText($this->text); }