classes/sql.php
/**
	 * Enclose the table with the proper quote identifier. This
	 * function is to be used to handle JOIN and FROM table names
	 * which may be in array(table => alias) form.
	 * 
	 * $table = 'name';
	 * $table = 'the.name';
	 * $table = array('the.name' => 'alias');
	 *
	 * @param array|string $table to quote
	 * @return string
	 */
Enclose the table with the proper quote identifier. This
function is to be used to handle JOIN and FROM table names
which may be in array(table => alias) form.



@param array|string $table to quote
@return string
Enclose the table with the proper quote identifier . This function is to be used to handle JOIN and FROM table names which may be in array ( table = > alias ) form . @param array|string $table to quote @return string
public function quote_table($table)
	{
		$alias = NULL;
		if(is_array($table))
		{
			$alias = current($table);
			$table = key($table);
		}
		$table = $this->quote_columns($table);
		return $table. ($alias ? ' AS '. $alias : '');
	}
public function quote_table ( $ table ) { $ alias = NULL ; if ( is_array ( $ table ) ) { $ alias = current ( $ table ) ; $ table = key ( $ table ) ; } $ table = $ this -> quote_columns ( $ table ) ; return $ table . ( $ alias ? ' AS ' . $ alias : '' ) ; }
Enclose the table with the proper quote identifier.
Enclose the table with the proper quote identifier .
// Quote the table name // Return '"database"."table" AS t1'