PHP 클래스 Newscoop\Service\Implementation\AEntityBaseServiceDoctrine

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\ORM\EntityManager
$entityClassName string
$id Newscoop\Service\Resource\ResourceId

공개 메소드들

메소드 설명
__construct ( ResourceId $id ) Construct the service base d on the provided resource id.
findById ( $id )
getById ( $id ) * ---------------------------------------------------------------

보호된 메소드들

메소드 설명
_init_ ( ) Provides aditional initialization for the service.
getManager ( ) : EntityManager Provides the dictrine entity manager.
getResourceId ( ) : Newscoop\Services\Resource\ResourceId Provides the resource id.

메소드 상세

__construct() 공개 메소드

Construct the service base d on the provided resource id.
public __construct ( ResourceId $id )
$id Newscoop\Service\Resource\ResourceId The resource id, not null not empty

_init_() 추상적인 보호된 메소드

Provides aditional initialization for the service.
abstract protected _init_ ( )

findById() 공개 메소드

public findById ( $id )

getById() 공개 메소드

* ---------------------------------------------------------------
public getById ( $id )

getManager() 보호된 메소드

Provides the dictrine entity manager.
protected getManager ( ) : EntityManager
리턴 Doctrine\ORM\EntityManager The doctrine entity manager.

getResourceId() 보호된 메소드

Provides the resource id.
protected getResourceId ( ) : Newscoop\Services\Resource\ResourceId
리턴 Newscoop\Services\Resource\ResourceId The resource id.

프로퍼티 상세

$em 보호되어 있는 프로퍼티

protected EntityManager,Doctrine\ORM $em
리턴 Doctrine\ORM\EntityManager

$entityClassName 보호되어 있는 프로퍼티

protected string $entityClassName
리턴 string

$id 보호되어 있는 프로퍼티

protected ResourceId,Newscoop\Service\Resource $id
리턴 Newscoop\Service\Resource\ResourceId