wysiwygText() 공개 정적인 메소드

public static wysiwygText ( $text ) : mixed
$text
리턴 mixed
예제 #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);
 }
예제 #2
0
파일: Wysiwyg.php 프로젝트: pimcore/pimcore
 /**
  * @see Document\Tag\TagInterface::frontend
  * @return string
  */
 public function frontend()
 {
     return Text::wysiwygText($this->text);
 }