PHP Class skeeks\cms\relatedProperties\PropertyType

Inheritance: extends yii\base\Model, implements skeeks\cms\base\ConfigFormInterface
Afficher le fichier Open project: skeeks-cms/cms Class Usage Examples

Méthodes publiques

Свойство Type Description
$activeForm yii\widgets\ActiveForm Object form which will be completed item
$code TODO: It may be deprecated @version > 3.0.2
$id string
$name string The name of the handler
$property skeeks\cms\relatedProperties\models\RelatedPropertyModel Object properties is bound to the current handler

Méthodes publiques

Méthode Description
addRules ( ) Adding validation rules to the object RelatedPropertiesModel
beforeDeleteValue ( ) Fires before the removal of the property value of the element base
beforeSaveValue ( mixed $value ) : mixed Converting the property value before saving to database
getDefaultValue ( ) : null The default value for this property
getIsMultiple ( ) : boolean From the result of this function will depend on how the property values are stored in the database
getMultiple ( ) : string TODO: is deprecated @version > 3.0.2
getStringValue ( ) : string
initValue ( mixed $valueFromDb ) : mixed Conversion property value received from the database
renderConfigForm ( ActiveForm $form ) The configuration form for the current state of the component settings
renderForActiveForm ( ) : ActiveField Drawing form element

Method Details

addRules() public méthode

Adding validation rules to the object RelatedPropertiesModel
public addRules ( )

beforeDeleteValue() public méthode

Fires before the removal of the property value of the element base
public beforeDeleteValue ( )

beforeSaveValue() public méthode

Converting the property value before saving to database
public beforeSaveValue ( mixed $value ) : mixed
$value mixed
Résultat mixed

getDefaultValue() public méthode

The default value for this property
public getDefaultValue ( ) : null
Résultat null

getIsMultiple() public méthode

From the result of this function will depend on how the property values are stored in the database
public getIsMultiple ( ) : boolean
Résultat boolean

getMultiple() public méthode

TODO: is deprecated @version > 3.0.2
public getMultiple ( ) : string
Résultat string

getStringValue() public méthode

public getStringValue ( ) : string
Résultat string

initValue() public méthode

Conversion property value received from the database
public initValue ( mixed $valueFromDb ) : mixed
$valueFromDb mixed
Résultat mixed

renderConfigForm() public méthode

The configuration form for the current state of the component settings
public renderConfigForm ( ActiveForm $form )
$form yii\widgets\ActiveForm

renderForActiveForm() public méthode

Drawing form element
public renderForActiveForm ( ) : ActiveField
Résultat yii\widgets\ActiveField

Property Details

$activeForm public_oe property

Object form which will be completed item
public ActiveForm,yii\widgets $activeForm
Résultat yii\widgets\ActiveForm

$code public_oe property

TODO: It may be deprecated @version > 3.0.2
public $code

$id public_oe property

public string $id
Résultat string

$name public_oe property

The name of the handler
public string $name
Résultat string

$property public_oe property

Object properties is bound to the current handler
public RelatedPropertyModel,skeeks\cms\relatedProperties\models $property
Résultat skeeks\cms\relatedProperties\models\RelatedPropertyModel