PHP Class DvsModelField

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

Méthodes publiques

Свойство Type Description
$dvs_type

Protected Properties

Свойство Type Description
$_value
$appends
$dates
$guarded
$softDelete
$table

Méthodes publiques

Méthode 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 méthode

Get the messages for this field type
public getMessagesAttribute ( ) : []
Résultat []

getPickedRulesAttribute() public méthode

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

getPicksAttribute() public méthode

Get the picks for this field type
public getPicksAttribute ( ) : []
Résultat []

getRulesAttribute() public méthode

Get the rules for this field type
public getRulesAttribute ( ) : []
Résultat []

getScopeAttribute() public méthode

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

getTypeAttribute() public méthode

Get the field type this field type represetnts
public getTypeAttribute ( ) : string
Résultat string

getValueAttribute() public méthode

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

getValuesAttribute() public méthode

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

model() public méthode

A field belongs to a model
public model ( ) : Eloquent\Relationships\MorphTo
Résultat Eloquent\Relationships\MorphTo

syncValuesWithModelValues() public méthode

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
Résultat 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