PHP Class DvsModelField

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes
Exibir arquivo Open project: devisephp/cms Class Usage Examples

Public Properties

Property Type Description
$dvs_type

Protected Properties

Property Type Description
$_value
$appends
$dates
$guarded
$softDelete
$table

Public Methods

Method Description
getMessagesAttribute ( ) : [] Get the messages for this field type
getPickedRulesAttribute ( ) : [] Gets only the rules that are picked instead of all the rules
getPicksAttribute ( ) : [] Get the picks for this field type
getRulesAttribute ( ) : [] Get the rules for this field type
getScopeAttribute ( ) : string Let's us know if the scope of this field is global or page
getTypeAttribute ( ) : string Get the field type this field type represetnts
getValueAttribute ( ) : FieldValue Accessor on this model to get value for the latestVersion of this field
getValuesAttribute ( ) : FieldValue Sometimes we've been using values instead of value so this is here for backwards compatability support
model ( ) : Eloquent\Relationships\MorphTo A field belongs to a model
syncValuesWithModelValues ( Eloquent $model = null ) : void This syncs the model values with all this fields values which is useful in case the user updates the model outside of the context of the model field

Method Details

getMessagesAttribute() public method

Get the messages for this field type
public getMessagesAttribute ( ) : []
return []

getPickedRulesAttribute() public method

Gets only the rules that are picked instead of all the rules
public getPickedRulesAttribute ( ) : []
return []

getPicksAttribute() public method

Get the picks for this field type
public getPicksAttribute ( ) : []
return []

getRulesAttribute() public method

Get the rules for this field type
public getRulesAttribute ( ) : []
return []

getScopeAttribute() public method

Let's us know if the scope of this field is global or page
public getScopeAttribute ( ) : string
return string

getTypeAttribute() public method

Get the field type this field type represetnts
public getTypeAttribute ( ) : string
return string

getValueAttribute() public method

Accessor on this model to get value for the latestVersion of this field
public getValueAttribute ( ) : FieldValue
return FieldValue

getValuesAttribute() public method

Sometimes we've been using values instead of value so this is here for backwards compatability support
public getValuesAttribute ( ) : FieldValue
return FieldValue

model() public method

A field belongs to a model
public model ( ) : Eloquent\Relationships\MorphTo
return Eloquent\Relationships\MorphTo

syncValuesWithModelValues() public method

This syncs the model values with all this fields values which is useful in case the user updates the model outside of the context of the model field
public syncValuesWithModelValues ( Eloquent $model = null ) : void
$model Eloquent
return void

Property Details

$_value protected_oe property

protected $_value

$appends protected_oe property

protected $appends

$dates protected_oe property

protected $dates

$dvs_type public_oe property

public $dvs_type

$guarded protected_oe property

protected $guarded

$softDelete protected_oe property

protected $softDelete

$table protected_oe property

protected $table