PHP Class Devise\Pages\Models\ModelsResponseHandler

Show file Open project: devisephp/cms

Protected Properties

Property Type Description
$ModelManager ModelManager Model Manager

Public Methods

Method Description
__construct ( ModelManager $ModelManager, Framework $Framework ) Create a new model manager
executeModelFieldUpdate ( integer $modelFieldId, array $input ) : array Updates a single model field for this model (attribute)
executeModelFieldsCreate ( array $input ) : array Model creators use this to create new model fields for a model (model creator)
executeModelFieldsUpdate ( array $input ) : array Loops over all fields for this model and updates the model with new values (model)

Method Details

__construct() public method

Create a new model manager
public __construct ( ModelManager $ModelManager, Framework $Framework )
$ModelManager ModelManager
$Framework Devise\Support\Framework

executeModelFieldUpdate() public method

Updates a single model field for this model (attribute)
public executeModelFieldUpdate ( integer $modelFieldId, array $input ) : array
$modelFieldId integer
$input array
return array

executeModelFieldsCreate() public method

Model creators use this to create new model fields for a model (model creator)
public executeModelFieldsCreate ( array $input ) : array
$input array
return array

executeModelFieldsUpdate() public method

Loops over all fields for this model and updates the model with new values (model)
public executeModelFieldsUpdate ( array $input ) : array
$input array
return array

Property Details

$ModelManager protected property

Model Manager
protected ModelManager,Devise\Pages\Models $ModelManager
return ModelManager