Method | Description | |
---|---|---|
__construct ( ) | ||
callFunctions ( $name ) | ||
getFeatures ( [boolean] $array = true ) : array | collection | get all features. | |
group ( $group ) | ||
makeSelectColor ( ) | ||
oldFeatures ( [array] $productFeatures ) : array | organize old data for the product form. | |
setFeatures ( [collection] $features ) : void | set all features. | |
validateFeatures ( [array] $data ) : [string | array] | validate product feature, as specified in the table of product details. |
Method | Description | |
---|---|---|
validationMessagesFeatures ( [string] $rules, [string] $index, [string] $name ) : [array] | create the error message by taking the name feature, and validation rules. |
public getFeatures ( [boolean] $array = true ) : array | collection | ||
$array | [boolean] | |
return | array | collection |
public oldFeatures ( [array] $productFeatures ) : array | ||
$productFeatures | [array] | |
return | array |
public setFeatures ( [collection] $features ) : void | ||
$features | [collection] | |
return | void |
public validateFeatures ( [array] $data ) : [string | array] | ||
$data | [array] | |
return | [string | array] |