PHP Class Devise\Models\Scaffolding\ScaffoldingManager

Exibir arquivo Open project: devisephp/cms Class Usage Examples

Public Properties

Property Type Description
$errors
$message

Public Methods

Method Description
interpretInputData ( array &$input ) : array Takes in input array and sets/unsets data according to form input.
makeScaffolding ( $input, $scaffolding ) : boolean

Private Methods

Method Description
appendSoftDelete ( array &$input ) : void Checks for deleted_at key in input array and appends deleted_at data if it exists
appendTimestamps ( array &$input ) : void Checks for timestamps key to determine if created_at and updated_at fields should be added to fields array
castToBoolean ( &$value ) : void Ensures checkbox values are set as "true" or "false"
cleanseModelName ( &$input ) : array Removes special characters from input['model_name']
interpretFieldsArray ( &$input ) : array Fields input array "choices" and builds/formats array as a properly formatted choices array

Method Details

interpretInputData() public method

Takes in input array and sets/unsets data according to form input.
public interpretInputData ( array &$input ) : array
$input array
return array

makeScaffolding() public method

public makeScaffolding ( $input, $scaffolding ) : boolean
$input
return boolean

Property Details

$errors public_oe property

public $errors

$message public_oe property

public $message