non_linear.inc in Units of Measurement 7.2
File
plugins/operator/non_linear.inc
View source
<?php
$plugin = array(
'title' => t('Non-linear'),
'description' => t('Operator for joining quantity and a non-linear unit.'),
'sign' => 'quantity',
'transparent operand1' => NULL,
'transparent operand2' => NULL,
'precedence' => 1,
'dimension check' => FALSE,
'evaluate callback' => NULL,
'dimension callback' => NULL,
'split quantity callback' => NULL,
'isolate operand callback' => NULL,
'sql evaluate fragment' => "SELECT REPLACE(decomposition_postfix, 'value', token1) INTO expression FROM {units_unit} WHERE machine_name = token2;\n RETURN (expression);",
'operator class' => 'UnitsMathematicalOperatorNonLinear',
);
function units_operator_non_linear_evaluate($operand1, $operand2) {
}
function units_operator_non_linear_dimension($dimension1, $dimension2, $operator1, $operator2) {
}
function units_operator_non_linear_split_quantity($total_quantity, $quantity1, $quantity2, $plugin) {
}