PHP Класс Swiftriver\Core\ObjectModel\ObjectFactories\ContentFactory

Автор: mg[at]swiftly[dot]org
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateContent ( Source $source, string $json = null ) : Content Given a source and optional content JSON, this factory method creates a new content item associated with the given source.

Описание методов

CreateContent() публичный статический Метод

If JSON is passed in then this is used to build the content, if not, then source is set and a new unique ID is generated.
public static CreateContent ( Source $source, string $json = null ) : Content
$source Swiftriver\Core\ObjectModel\Source
$json string
Результат Swiftriver\Core\ObjectModel\Content