JDatabaseQuery::union

      Signature

      protected function union(mixed $query, [boolean $distinct = false, [string $glue = '']] )

      Parameters

      $query
      The JDatabaseQuery object or string to union.
      $distinct
      True to only return distinct rows from the union.
      $glue
      The glue by which to join the conditions.

      Returns

      mixed
      The JDatabaseQuery object on success or boolean false on failure.