PHP 클래스 Pimcore\Tool\Text

파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

공개 메소드들

메소드 설명
convertToUTF8 ( $text ) : string
detectEncoding ( $text ) : string
getCacheTagsOfWysiwygText ( $text, array $tags = [] ) : array
getDependenciesOfWysiwygText ( string $text ) : array extracts all dependencies to other elements from wysiwyg text
getElementsInWysiwyg ( $text ) : array
getElementsTagsInWysiwyg ( string $text ) : array
removeLineBreaks ( string $text = "" ) : mixed | string
replaceWysiwygTextRelationIds ( array $idMapping, string $text ) : mixed
wysiwygText ( $text ) : mixed

메소드 상세

convertToUTF8() 공개 정적인 메소드

public static convertToUTF8 ( $text ) : string
$text
리턴 string

detectEncoding() 공개 정적인 메소드

public static detectEncoding ( $text ) : string
$text
리턴 string

getCacheTagsOfWysiwygText() 공개 정적인 메소드

public static getCacheTagsOfWysiwygText ( $text, array $tags = [] ) : array
$text
$tags array
리턴 array

getDependenciesOfWysiwygText() 공개 정적인 메소드

extracts all dependencies to other elements from wysiwyg text
public static getDependenciesOfWysiwygText ( string $text ) : array
$text string
리턴 array

getElementsInWysiwyg() 공개 정적인 메소드

public static getElementsInWysiwyg ( $text ) : array
$text
리턴 array

getElementsTagsInWysiwyg() 공개 정적인 메소드

public static getElementsTagsInWysiwyg ( string $text ) : array
$text string
리턴 array

removeLineBreaks() 공개 정적인 메소드

public static removeLineBreaks ( string $text = "" ) : mixed | string
$text string
리턴 mixed | string

replaceWysiwygTextRelationIds() 공개 정적인 메소드

사용 중단:
public static replaceWysiwygTextRelationIds ( array $idMapping, string $text ) : mixed
$idMapping array e.g. array("asset"=>array(OLD_ID=>NEW_ID),"object"=>array(OLD_ID=>NEW_ID),"document"=>array(OLD_ID=>NEW_ID));
$text string html text of wysiwyg field
리턴 mixed

wysiwygText() 공개 정적인 메소드

public static wysiwygText ( $text ) : mixed
$text
리턴 mixed