wysiwygText() public static method

public static wysiwygText ( $text ) : mixed
$text
return mixed
Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * @see Document\Tag\TagInterface::frontend
  * @return string
  */
 public function frontend()
 {
     return Text::wysiwygText($this->text);
 }