Property | Type | Description | |
---|---|---|---|
$relatedElementModel | RelatedElementModel |
Method | Description | |
---|---|---|
attributeHints ( ) : array | ||
attributeLabels ( ) | ||
delete ( ) : boolean | ||
getAttribute ( string $name ) : mixed | Returns the named attribute value. | |
getEnumByAttribute ( $name ) : |
||
getProperties ( ) : |
||
getRelatedElementProperties ( string $name ) : |
||
getRelatedProperty ( string $name ) : |
||
getSmartAttribute ( $name ) : string | ||
hasAttribute ( string $name ) : boolean | Returns a value indicating whether the model has an attribute with the specified name. | |
init ( ) | ||
loadDefaultValues ( boolean $skipIfSet = true ) | Loads default values from database table schema | |
save ( boolean $runValidation = true, array $attributeNames = null ) : boolean | Saves the current record. | |
setAttribute ( string $name, mixed $value ) | Sets the named attribute value. |
Method | Description | |
---|---|---|
_deleteRelatedPropertyValue ( |
||
_saveRelatedPropertyValue ( |
protected _deleteRelatedPropertyValue ( |
||
$property |
protected _saveRelatedPropertyValue ( |
||
$property |
public getAttribute ( string $name ) : mixed | ||
$name | string | the attribute name |
return | mixed | the attribute value. Null if the attribute is not set or does not exist. |
public getEnumByAttribute ( $name ) : |
||
$name | ||
return |
public getProperties ( ) : |
||
return |
public getRelatedElementProperties ( string $name ) : |
||
$name | string | |
return |
public getRelatedProperty ( string $name ) : |
||
$name | string | |
return |
public hasAttribute ( string $name ) : boolean | ||
$name | string | the name of the attribute |
return | boolean | whether the model has an attribute with the specified name. |
public loadDefaultValues ( boolean $skipIfSet = true ) | ||
$skipIfSet | boolean | whether existing value should be preserved. This will only set defaults for attributes that are `null`. |
public save ( boolean $runValidation = true, array $attributeNames = null ) : boolean | ||
$runValidation | boolean | whether to perform validation (calling [[validate()]]) before saving the record. Defaults to `true`. If the validation fails, the record will not be saved to the database and this method will return `false`. |
$attributeNames | array | list of attribute names that need to be saved. Defaults to null, meaning all attributes that are loaded from DB will be saved. |
return | boolean | whether the saving succeeded (i.e. no validation errors occurred). |
public setAttribute ( string $name, mixed $value ) | ||
$name | string | the attribute name |
$value | mixed | the attribute value. |