class CollectionFieldsFactory
Collection fields are objects that allow us to traverse the keys in that collection.
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
Methods
|
__construct(DvsField $Field)
Create a new factory |
||
| CollectionFields |
createFromCollectionInstance(CollectionInstance $instance)
Creates collection fields object from a collection instance that we pulled from the database (those will have fields associated with them too) |
Details
at line 24
public
__construct(DvsField $Field)
Create a new factory
at line 37
public CollectionFields
createFromCollectionInstance(CollectionInstance $instance)
Creates collection fields object from a collection instance that we pulled from the database (those will have fields associated with them too)