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
파일 보기 프로젝트 열기: symfony-cmf/routing-bundle 1 사용 예제들

공개 메소드들

메소드 설명
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