PHP Класс Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\ContentRepository

This repository follows the pattern of FQN:id. That is, the full model class name, then a colon, then the id. For example "Acme\Content:12". This will only work with single column ids.
Автор: teito
Наследование: extends Symfony\Cmf\Bundle\RoutingBundle\Doctrine\DoctrineProvider, implements Symfony\Cmf\Component\Routing\ContentRepositoryInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
findById ( string $id )
getContentId ( $content )

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

Метод Описание
getModelAndId ( mixed $identifier ) : array Determine target class and id for this content.

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

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

public findById ( string $id )
$id string The ID contains both model name and id, separated by a colon.

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

public getContentId ( $content )

getModelAndId() защищенный Метод

Determine target class and id for this content.
protected getModelAndId ( mixed $identifier ) : array
$identifier mixed as produced by getContentId
Результат array with model first element, id second