PHP Class Sulu\Component\SmartContent\ContentType

Inheritance: extends Sulu\Component\Content\ComplexContentType
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\SmartContent\DataProviderPoolInterface $dataProviderPool, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Symfony\Component\HttpFoundation\RequestStack $requestStack, Sulu\Component\Tag\Request\TagRequestHandlerInterface $tagRequestHandler, Sulu\Component\Category\Request\CategoryRequestHandlerInterface $categoryRequestHandler, string $template ) SmartContentType constructor.
exportData ( $propertyValue )
getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
getTemplate ( )
getType ( )
getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property )
importData ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null )
read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
remove ( 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 )

Protected Methods

Method Description
resolveTags ( &$value, $key )

Private Methods

Method Description
getCurrentPage ( string $pageParameter ) : integer Determine current page from current request.
getProvider ( Sulu\Component\Content\Compat\PropertyInterface $property ) : Sulu\Component\SmartContent\DataProviderInterface Returns provider for given property.

Method Details

__construct() public method

SmartContentType constructor.
public __construct ( Sulu\Component\SmartContent\DataProviderPoolInterface $dataProviderPool, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Symfony\Component\HttpFoundation\RequestStack $requestStack, Sulu\Component\Tag\Request\TagRequestHandlerInterface $tagRequestHandler, Sulu\Component\Category\Request\CategoryRequestHandlerInterface $categoryRequestHandler, string $template )
$dataProviderPool Sulu\Component\SmartContent\DataProviderPoolInterface
$tagManager Sulu\Bundle\TagBundle\Tag\TagManagerInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$tagRequestHandler Sulu\Component\Tag\Request\TagRequestHandlerInterface
$categoryRequestHandler Sulu\Component\Category\Request\CategoryRequestHandlerInterface
$template string

exportData() public method

public exportData ( $propertyValue )

getContentData() public method

public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

getDefaultParams() public method

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

getReferencedUuids() public method

public getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

getTemplate() public method

public getTemplate ( )

getType() public method

public getType ( )

getViewData() public method

public getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

importData() public method

public importData ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

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

remove() public method

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

resolveTags() protected method

protected resolveTags ( &$value, $key )
$value
$key

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