1) { $field = array_pop($a); $count = count($e); $slice = array_slice($e, 0, ($count - 1)); $operator = implode(' ', $slice); $slice = array_slice($e, -1, 1); $value = implode('', $slice); $reference = implode(".",$a); $count = count($a); $table = $this->query->load($reference, false); $where = $this->query->getTableAlias($reference).".".$field." ".$operator." ".$value; } return $where; } public function __toString() { return ( ! empty($this->parts))?implode(" AND ", $this->parts):''; } } ?>