src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatTable($table, $alias = null) {
        if (!$table) {
            throw new InvalidTableException('Missing table name for query');
        }

        $output = $this->quote($table);

        if ($alias && $table !== $alias) {
            $output = sprintf($this->getClause(self::AS_ALIAS), $output, $this->quote($alias));
        }

        return $output;
    }
public function formatTable($table, $alias = null) {
        if (!$table) {
            throw new InvalidTableException('Missing table name for query');
        }

        $output = $this->quote($table);

        if ($alias && $table !== $alias) {
            $output = sprintf($this->getClause(self::AS_ALIAS), $output, $this->quote($alias));
        }

        return $output;
    }
public function formatTable ( $ table , $ alias = null ) { if ( ! $ table ) { throw new InvalidTableException ( 'Missing table name for query' ) ; } $ output = $ this -> quote ( $ table ) ; if ( $ alias && $ table !== $ alias ) { $ output = sprintf ( $ this -> getClause ( self :: AS_ALIAS ) , $ output , $ this -> quote ( $ alias ) ) ; } return $ output ; }
Format the table name and alias name.

@param string $table
@param string $alias
@return string
@throws \Titon\Db\Exception\InvalidTableException
Format the table name and alias name .