PHP Class Sulu\Component\Content\Types\TextEditor

Inheritance: extends Sulu\Component\Content\SimpleContentType
Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( $template, Sulu\Bundle\MarkupBundle\Markup\MarkupParserInterface $markupParser, $markupNamespace = 'sulu' )
getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
getTemplate ( )
read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
write ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey )

Private Methods

Method Description
removeValidation ( string $content ) : string Removes validation attributes.
validate ( string $content, string $locale ) : string Returns validated content.

Method Details

__construct() public method

public __construct ( $template, Sulu\Bundle\MarkupBundle\Markup\MarkupParserInterface $markupParser, $markupNamespace = 'sulu' )
$markupParser Sulu\Bundle\MarkupBundle\Markup\MarkupParserInterface

getDefaultParams() public method

public getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
$property Sulu\Component\Content\Compat\PropertyInterface

getTemplate() public method

public getTemplate ( )

read() public method

public read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

write() public method

public write ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface