/**
* Get the field via formula or build it using alias and field name.
*
* Sometimes the handler might want us to use some kind of formula, so give
* it that option. If it wants us to do this, it must set $helper->formula = TRUE
* and implement handler->getFormula().
*/
public function getField() { if (!
empty($this->formula
)) { return $this->handler->
getFormula();
} else { return $this->handler->tableAlias . '.' .
$this->handler->realField;
} } /**
* Add a table to the query.
*
* This is an advanced concept; not only does it add a new instance of the table,
* but it follows the relationship path all the way down to the relationship
* link point and adds *that* as a new relationship and then adds the table to
* the relationship, if necessary.
*/