PHP Class 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
Exibir arquivo Open project: devisephp/cms Class Usage Examples

Protected Properties

Property Type Description
$Field DvsField DvsField model to get data from database

Public Methods

Method Description
__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)

Method Details

__construct() public method

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

createFromCollectionInstance() public method

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
return CollectionFields

Property Details

$Field protected_oe property

DvsField model to get data from database
protected DvsField $Field
return DvsField