Mage_Sales_Model_Entity_Order_Shipment_Attribute_Backend_Parent
extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
in package
Maho
Tags
Table of Contents
Properties
- $_attribute : Mage_Eav_Model_Entity_Attribute_Abstract
- Reference to the attribute instance
- $_defaultValue : mixed
- Default value for the attribute
- $_entityIdField : string
- Name of the entity_id field for the value table of this attribute
- $_table : string
- Table name for this attribute
- $_valueId : int
- PK value_id for loaded entity (for faster updates)
- $_valueIds : array<string|int, mixed>
- PK value_ids for each loaded entity
Methods
- afterDelete() : $this
- After delete method
- afterLoad() : $this
- After load method
- afterSave() : $this
- After save method
- beforeDelete() : $this
- Before delete method
- beforeSave() : $this
- Before save method
- getAttribute() : Mage_Eav_Model_Entity_Attribute_Abstract
- Get attribute instance
- getDefaultValue() : mixed
- Retrieve default value
- getEntityIdField() : string
- Get entity_id field in the attribute values tables
- getEntityValueId() : int
- Get entity value id
- getTable() : string
- Get table name for the values of the attribute
- getType() : string
- Get backend type of the attribute
- getValueId() : int
- Retrieve value id
- isStatic() : bool
- Check whether the attribute is a real field in the entity table
- setAttribute() : $this
- Set attribute instance
- setEntityValueId() : $this
- Set entity value id
- setValueId() : $this
- Set value id
- validate() : $this|bool
- Validate object
Properties
$_attribute
Reference to the attribute instance
protected
Mage_Eav_Model_Entity_Attribute_Abstract
$_attribute
$_defaultValue
Default value for the attribute
protected
mixed
$_defaultValue
= \null
$_entityIdField
Name of the entity_id field for the value table of this attribute
protected
string
$_entityIdField
$_table
Table name for this attribute
protected
string
$_table
$_valueId
PK value_id for loaded entity (for faster updates)
protected
int
$_valueId
$_valueIds
PK value_ids for each loaded entity
protected
array<string|int, mixed>
$_valueIds
= []
Methods
afterDelete()
After delete method
public
afterDelete(Varien_Object $object) : $this
Parameters
- $object : Varien_Object
Attributes
- #[Override]
Return values
$thisafterLoad()
After load method
public
afterLoad(Varien_Object $object) : $this
Parameters
- $object : Varien_Object
Attributes
- #[Override]
Return values
$thisafterSave()
After save method
public
afterSave(Varien_Object|Mage_Sales_Model_Order_Shipment $object) : $this
Parameters
- $object : Varien_Object|Mage_Sales_Model_Order_Shipment
Attributes
- #[Override]
Return values
$thisbeforeDelete()
Before delete method
public
beforeDelete(Varien_Object $object) : $this
Parameters
- $object : Varien_Object
Attributes
- #[Override]
Return values
$thisbeforeSave()
Before save method
public
beforeSave(Varien_Object $object) : $this
Parameters
- $object : Varien_Object
Attributes
- #[Override]
Return values
$thisgetAttribute()
Get attribute instance
public
getAttribute() : Mage_Eav_Model_Entity_Attribute_Abstract
Return values
Mage_Eav_Model_Entity_Attribute_AbstractgetDefaultValue()
Retrieve default value
public
getDefaultValue() : mixed
getEntityIdField()
Get entity_id field in the attribute values tables
public
getEntityIdField() : string
Attributes
- #[Override]
Return values
stringgetEntityValueId()
Get entity value id
public
getEntityValueId(Varien_Object $entity) : int
Parameters
- $entity : Varien_Object
Attributes
- #[Override]
Return values
intgetTable()
Get table name for the values of the attribute
public
getTable() : string
Attributes
- #[Override]
Return values
stringgetType()
Get backend type of the attribute
public
getType() : string
Attributes
- #[Override]
Return values
stringgetValueId()
Retrieve value id
public
getValueId() : int
Attributes
- #[Override]
Return values
intisStatic()
Check whether the attribute is a real field in the entity table
public
isStatic() : bool
Attributes
- #[Override]
Return values
boolsetAttribute()
Set attribute instance
public
setAttribute(Mage_Eav_Model_Entity_Attribute_Abstract $attribute) : $this
Parameters
- $attribute : Mage_Eav_Model_Entity_Attribute_Abstract
Return values
$thissetEntityValueId()
Set entity value id
public
setEntityValueId(Varien_Object $entity, int $valueId) : $this
Parameters
- $entity : Varien_Object
- $valueId : int
Attributes
- #[Override]
Return values
$thissetValueId()
Set value id
public
setValueId(int $valueId) : $this
Parameters
- $valueId : int
Attributes
- #[Override]
Return values
$thisvalidate()
Validate object
public
validate(Varien_Object $object) : $this|bool
Parameters
- $object : Varien_Object