PHP Класс Sulu\Component\SmartContent\ContentType

Наследование: extends Sulu\Component\Content\ComplexContentType
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
resolveTags ( &$value, $key )

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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 exportData ( $propertyValue )

getContentData() публичный Метод

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

getDefaultParams() публичный Метод

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

getReferencedUuids() публичный Метод

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

getTemplate() публичный Метод

public getTemplate ( )

getType() публичный Метод

public getType ( )

getViewData() публичный Метод

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

importData() публичный Метод

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 read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

remove() публичный Метод

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 resolveTags ( &$value, $key )
$value
$key

write() публичный Метод

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