Property | Type | Description | |
---|---|---|---|
$em | Doctrine\ORM\EntityManager | ||
$id |
Method | Description | |
---|---|---|
__construct ( |
Construct the service base d on the provided resource id. | |
create ( string $name ) : |
Creates an article type | |
createField ( string $name, |
Creates a field | |
createMany ( array $articleTypes ) | Creates more article types | |
findAllTypes ( ) | ||
findFieldByName ( |
||
findFields ( |
||
findTypeByName ( $name ) | ||
getCount ( Search $search = NULL ) |
Method | Description | |
---|---|---|
getManager ( ) : Doctrine\ORM\EntityManager | Provides the dictrine entity manager. | |
getResourceId ( ) : Newscoop\Services\Resource\ResourceId | Provides the resource id. |
Method | Description | |
---|---|---|
_create ( $name ) | ||
_createField ( $name, |
public __construct ( |
||
$id | The resource id, not null not empty |
public createField ( string $name, |
||
$name | string | the name of the article type field, not null |
$type | ||
$props | array | properies of the field @see Newscoop\Entity\ArticleType |
return |
public createMany ( array $articleTypes ) | ||
$articleTypes | array | the array of types, optionally with fields [ typeName => [ fields : [ name : fieldName, parentType : typeName, ignore : bool ], [...] ], [...] ] |
public findFieldByName ( |
||
$type |
public findFields ( |
||
$type |
protected getManager ( ) : Doctrine\ORM\EntityManager | ||
return | Doctrine\ORM\EntityManager | The doctrine entity manager. |
protected getResourceId ( ) : Newscoop\Services\Resource\ResourceId | ||
return | Newscoop\Services\Resource\ResourceId | The resource id. |