Method | Description | |
---|---|---|
__construct ( DvsModelField $DvsModelField, |
Create a new model manager | |
createFieldsAndModel ( array $fields, array $page ) : array(Collection, | Creates a new model from the given fields | |
updateField ( [type] $field, [type] $page ) : [type] | Updates a single field | |
updateFields ( [type] $fields, [type] $page ) : [type] | Update each field in this fields array |
Method | Description | |
---|---|---|
createModel ( [type] $fields ) : [type] | Creates a new model for the first field type it finds | |
getCreatedField ( [type] $field ) : [type] | Creates a new model field | |
getCreatedFields ( [type] $fields ) : [type] | [createFields description] | |
getMessages ( [type] $fields ) : [type] | Get the messages for these fields | |
getModelFor ( array $fields ) : Eloquent | Get the field's model | |
getOriginalField ( [type] $field ) : [type] | Gets the original field in place of the modified field | |
getOriginalFields ( [type] $fields ) : [type] | Gets all the original fields in place of the modified fields. | |
getRules ( [type] $fields ) : [type] | Get the rules for these fields | |
getUpdatedFields ( array $fields ) : Collection | Get the updated fields | |
getValues ( array $fields, Eloquent $model, $page ) : array | Gets the picked values for the entered fields | |
removeAnyBadModelFields ( [type] $fields ) : [type] | Sometimes errors and stuff can cause invalid model fields in our database. | |
removeFields ( [type] $fields ) : [type] | Removes these fields since the validation failed. | |
restoreOriginalFields ( $originals ) : void | Restores the original fields, since validation failed |
public __construct ( DvsModelField $DvsModelField, |
||
$DvsModelField | DvsModelField | [description] |
$Framework | [description] |
public createFieldsAndModel ( array $fields, array $page ) : array(Collection, | ||
$fields | array | |
$page | array | |
return | array(Collection, |
protected createModel ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected getCreatedField ( [type] $field ) : [type] | ||
$field | [type] | |
return | [type] |
protected getCreatedFields ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected getMessages ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected getModelFor ( array $fields ) : Eloquent | ||
$fields | array | |
return | Eloquent |
protected getOriginalField ( [type] $field ) : [type] | ||
$field | [type] | |
return | [type] |
protected getOriginalFields ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected getRules ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected getUpdatedFields ( array $fields ) : Collection | ||
$fields | array | |
return | Collection |
protected removeAnyBadModelFields ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected removeFields ( [type] $fields ) : [type] | ||
$fields | [type] | |
return | [type] |
protected restoreOriginalFields ( $originals ) : void | ||
return | void |
public updateField ( [type] $field, [type] $page ) : [type] | ||
$field | [type] | |
$page | [type] | |
return | [type] |
public updateFields ( [type] $fields, [type] $page ) : [type] | ||
$fields | [type] | |
$page | [type] | |
return | [type] |