PHP Interface Sulu\Component\Content\Repository\ContentRepositoryInterface

显示文件 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
find ( string $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content Find content by uuid.
findAll ( string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find all pages and returns an array of content.
findAllByPortal ( string $locale, string $portalKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find all pages and returns an array of content.
findByParentUuid ( string $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find content which are children of parent uuid.
findByPaths ( array $paths, string $locale, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find content array which given paths.
findByUuids ( array $uuids, string $locale, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find content array which given UUIDs.
findByWebspaceRoot ( string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find content which are children of webspace root.
findParentsWithSiblingsByUuid ( $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[] Find content with uuid inclusive his parents and their siblings.

Method Details

find() public method

Find content by uuid.
public find ( string $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content
$uuid string
$locale string
$webspaceKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content

findAll() public method

Find all pages and returns an array of content.
public findAll ( string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$locale string
$webspaceKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findAllByPortal() public method

Find all pages and returns an array of content.
public findAllByPortal ( string $locale, string $portalKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$locale string
$portalKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findByParentUuid() public method

Find content which are children of parent uuid.
public findByParentUuid ( string $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$uuid string
$locale string
$webspaceKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findByPaths() public method

Find content array which given paths.
public findByPaths ( array $paths, string $locale, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$paths array
$locale string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findByUuids() public method

Find content array which given UUIDs.
public findByUuids ( array $uuids, string $locale, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$uuids array
$locale string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findByWebspaceRoot() public method

Find content which are children of webspace root.
public findByWebspaceRoot ( string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$locale string
$webspaceKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]

findParentsWithSiblingsByUuid() public method

Find content with uuid inclusive his parents and their siblings.
public findParentsWithSiblingsByUuid ( $uuid, string $locale, string $webspaceKey, Sulu\Component\Content\Repository\Mapping\MappingInterface $mapping, Sulu\Component\Security\Authentication\UserInterface $user = null ) : Content[]
$locale string
$webspaceKey string
$mapping Sulu\Component\Content\Repository\Mapping\MappingInterface Includes array of property names
$user Sulu\Component\Security\Authentication\UserInterface
return Content[]