PHP Класс Newscoop\Service\Implementation\AEntityBaseServiceDoctrine

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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