PHP Class Devise\Pages\Collections\CollectionsManager

Datei anzeigen Open project: devisephp/cms Class Usage Examples

Protected Properties

Property Type Description
$CollectionInstance DvsCollectionInstance DvsCollectionInstance model
$Field DvsField DvsField model

Public Methods

Method Description
__construct ( DvsCollectionInstance $CollectionInstance, DvsField $Field ) Create a new collections manager object
createNewInstance ( array $input ) : CollectionInstance Create a new collection instance
createNewInstanceField ( [type] $instance, $fieldInput ) : [type] [createNewInstanceField description]
removeInstance ( integer $id ) : boolean Remove instance from database
updateInstanceName ( $id, $name ) : CollectionInstance Update the collection instance name
updateInstanceSort ( $id, $sort ) : CollectionInstance Updates the instance with input data

Protected Methods

Method Description
findSortNumber ( $instance ) : [type] Gets the correct sort number

Method Details

__construct() public method

Create a new collections manager object
public __construct ( DvsCollectionInstance $CollectionInstance, DvsField $Field )
$CollectionInstance DvsCollectionInstance
$Field DvsField

createNewInstance() public method

Create a new collection instance
public createNewInstance ( array $input ) : CollectionInstance
$input array
return CollectionInstance

createNewInstanceField() public method

[createNewInstanceField description]
public createNewInstanceField ( [type] $instance, $fieldInput ) : [type]
$instance [type]
return [type]

findSortNumber() protected method

Gets the correct sort number
protected findSortNumber ( $instance ) : [type]
return [type]

removeInstance() public method

Remove instance from database
public removeInstance ( integer $id ) : boolean
$id integer
return boolean

updateInstanceName() public method

Update the collection instance name
public updateInstanceName ( $id, $name ) : CollectionInstance
return CollectionInstance

updateInstanceSort() public method

Updates the instance with input data
public updateInstanceSort ( $id, $sort ) : CollectionInstance
return CollectionInstance

Property Details

$CollectionInstance protected_oe property

DvsCollectionInstance model
protected DvsCollectionInstance $CollectionInstance
return DvsCollectionInstance

$Field protected_oe property

DvsField model
protected DvsField $Field
return DvsField