Check whether a condition has been previously compiled.
TRUE if the condition has been previously compiled.
Overrides ConditionInterface::compiled
public function compiled() {
if (!$this->where
->compiled() || !$this->having
->compiled()) {
return FALSE;
}
foreach ($this->tables as $table) {
// If this table is a subquery, check its status recursively.
if ($table['table'] instanceof SelectInterface) {
if (!$table['table']
->compiled()) {
return FALSE;
}
}
}
foreach ($this->union as $union) {
if (!$union['query']
->compiled()) {
return FALSE;
}
}
return TRUE;
}