PHP 클래스 Newscoop\Service\Implementation\ArticleTypeServiceDoctrine

상속: implements Newscoop\Service\IArticleTypeService
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( ResourceId $id ) Construct the service base d on the provided resource id.
create ( string $name ) : ArticleType Creates an article type
createField ( string $name, ArticleType $type, array $props = null ) : ArticleTypeField Creates a field
createMany ( array $articleTypes ) Creates more article types
findAllTypes ( )
findFieldByName ( ArticleType $type, $name )
findFields ( ArticleType $type )
findTypeByName ( $name )
getCount ( Search $search = NULL )

보호된 메소드들

메소드 설명
getManager ( ) : Doctrine\ORM\EntityManager Provides the dictrine entity manager.
getResourceId ( ) : Newscoop\Services\Resource\ResourceId Provides the resource id.

비공개 메소드들

메소드 설명
_create ( $name )
_createField ( $name, ArticleType $type, $props = null )

메소드 상세

__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

create() 공개 메소드

Creates an article type
public create ( string $name ) : ArticleType
$name string the name of the new article type, not null
리턴 Newscoop\Entity\ArticleType

createField() 공개 메소드

Creates a field
public createField ( string $name, ArticleType $type, array $props = null ) : ArticleTypeField
$name string the name of the article type field, not null
$type Newscoop\Entity\ArticleType
$props array properies of the field @see Newscoop\Entity\ArticleType
리턴 Newscoop\Entity\ArticleTypeField

createMany() 공개 메소드

Creates more article types
또한 보기: self::create()
public createMany ( array $articleTypes )
$articleTypes array the array of types, optionally with fields [ typeName => [ fields : [ name : fieldName, parentType : typeName, ignore : bool ], [...] ], [...] ]

findAllTypes() 공개 메소드

public findAllTypes ( )

findFieldByName() 공개 메소드

public findFieldByName ( ArticleType $type, $name )
$type Newscoop\Entity\ArticleType

findFields() 공개 메소드

public findFields ( ArticleType $type )
$type Newscoop\Entity\ArticleType

findTypeByName() 공개 메소드

public findTypeByName ( $name )

getCount() 공개 메소드

public getCount ( Search $search = NULL )
$search Search

getManager() 보호된 메소드

Provides the dictrine entity manager.
protected getManager ( ) : Doctrine\ORM\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 Doctrine\ORM\EntityManager $em
리턴 Doctrine\ORM\EntityManager

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

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