public function UnitsMathematicalExpressionWrapper::setMathematicalExpressionId in Units of Measurement 7.2
Set mathematical expression ID of this mathematical expression.
When saving this mathematical expression into database the old entries of this mathematical expression ID will be removed prior saving the in-memory representation.
Parameters
int $mathematical_expression_id: Mathematical expression ID of this mathematical expression
1 call to UnitsMathematicalExpressionWrapper::setMathematicalExpressionId()
- UnitsMathematicalExpressionWrapper::save in ./
units.module - Save the underlying mathematical expression into database.
File
- ./
units.module, line 1983 - Provide API for managing and converting units of measurement.
Class
- UnitsMathematicalExpressionWrapper
- Wrapper around "mathematical expression" objects for ease of db storage.
Code
public function setMathematicalExpressionId($mathematical_expression_id) {
$this->mathematical_expression_id = $mathematical_expression_id;
}