PHP Interface Newscoop\Service\IArticleTypeService

Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
findAllTypes ( ) : array Find all article types, which you can get fields for later on
findFields ( ArticleType $type ) : array Get all fields per article type
findTypeByName ( string $name ) : ArticleType | null Find one article type by name

Method Details

findAllTypes() public method

Find all article types, which you can get fields for later on
public findAllTypes ( ) : array
return array most probably consisting of \Newscroop\Entity\ArticleType instances

findFields() public method

Get all fields per article type
public findFields ( ArticleType $type ) : array
$type Newscoop\Entity\ArticleType
return array

findTypeByName() public method

Find one article type by name
public findTypeByName ( string $name ) : ArticleType | null
$name string
return Newscoop\Entity\ArticleType | null returns null if not found!