PHP 인터페이스 Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

Generators are used for generating new items of content. e.g: tags or categories for posts.
저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress

공개 메소드들

메소드 설명
generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collecions ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Generate items.

메소드 상세

generateItems() 공개 메소드

Generate items.
public generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collecions ) : Yosymfony\Spress\Core\DataSource\ItemInterface[]
$templateItem Yosymfony\Spress\Core\DataSource\ItemInterface The template item where generator was declared
$collecions array An array with the collection name as a key and collection's item as value
리턴 Yosymfony\Spress\Core\DataSource\ItemInterface[]