src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatJoins(array $joins) {
        if ($joins) {
            $output = [];

            foreach ($joins as $join) {
                $conditions = [];

                foreach ($join->getOn() as $pfk => $rfk) {
                    $conditions[] = $this->quote($pfk) . ' = ' . $this->quote($rfk);
                }

                $output[] = sprintf($this->getClause($join->getType()),
                    $this->formatTable($join->getTable(), $join->getAlias()),
                    implode(' ' . $this->getKeyword(self::ALSO) . ' ', $conditions));
            }

            return implode(' ', $output);
        }

        return '';
    }
public function formatJoins(array $joins) {
        if ($joins) {
            $output = [];

            foreach ($joins as $join) {
                $conditions = [];

                foreach ($join->getOn() as $pfk => $rfk) {
                    $conditions[] = $this->quote($pfk) . ' = ' . $this->quote($rfk);
                }

                $output[] = sprintf($this->getClause($join->getType()),
                    $this->formatTable($join->getTable(), $join->getAlias()),
                    implode(' ' . $this->getKeyword(self::ALSO) . ' ', $conditions));
            }

            return implode(' ', $output);
        }

        return '';
    }
public function formatJoins ( array $ joins ) { if ( $ joins ) { $ output = [ ] ; foreach ( $ joins as $ join ) { $ conditions = [ ] ; foreach ( $ join -> getOn ( ) as $ pfk => $ rfk ) { $ conditions [ ] = $ this -> quote ( $ pfk ) . ' = ' . $ this -> quote ( $ rfk ) ; } $ output [ ] = sprintf ( $ this -> getClause ( $ join -> getType ( ) ) , $ this -> formatTable ( $ join -> getTable ( ) , $ join -> getAlias ( ) ) , implode ( ' ' . $ this -> getKeyword ( self :: ALSO ) . ' ' , $ conditions ) ) ; } return implode ( ' ' , $ output ) ; } return '' ; }
Format the list of joins.

@param \Titon\Db\Query\Join[] $joins
@return string
Format the list of joins .