PHP Class DvsField

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes
显示文件 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
getScopeAttribute ( ) : string Let's us know if the scope of this field is global or page
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
pageVersion ( ) : belongsTo This field belongs to a page

Method Details

getScopeAttribute() public method

Let's us know if the scope of this field is global or page
public getScopeAttribute ( ) : 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

pageVersion() public method

This field belongs to a page
public pageVersion ( ) : belongsTo
return belongsTo

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