PHP Класс Devise\Pages\Collections\CollectionFieldsFactory

If a collection has 3 keys, key1, key2 and key3 and those keys are all image types then we can access the image urls like so $col->key1->image_url
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$Field DvsField DvsField model to get data from database

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

Метод Описание
__construct ( DvsField $Field ) Create a new factory
createFromCollectionInstance ( CollectionInstance $instance ) : CollectionFields Creates collection fields object from a collection instance that we pulled from the database (those will have fields associated with them too)

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

__construct() публичный метод

Create a new factory
public __construct ( DvsField $Field )
$Field DvsField

createFromCollectionInstance() публичный метод

Creates collection fields object from a collection instance that we pulled from the database (those will have fields associated with them too)
public createFromCollectionInstance ( CollectionInstance $instance ) : CollectionFields
$instance CollectionInstance
Результат CollectionFields

Описание свойств

$Field защищенное свойство

DvsField model to get data from database
protected DvsField $Field
Результат DvsField