src/DatabaseDriver.php
protected function quoteNameString($name, $asSinglePart = false)
	{
		$q = $this->nameQuote . $this->nameQuote;

		// Double quote reserved keyword
		$name = str_replace($q[1], $q[1] . $q[1], $name);

		if ($asSinglePart)
		{
			return $q[0] . $name . $q[1];
		}

		return $q[0] . str_replace('.', "$q[1].$q[0]", $name) . $q[1];
	}
protected function quoteNameString($name, $asSinglePart = false)
	{
		$q = $this->nameQuote . $this->nameQuote;

		// Double quote reserved keyword
		$name = str_replace($q[1], $q[1] . $q[1], $name);

		if ($asSinglePart)
		{
			return $q[0] . $name . $q[1];
		}

		return $q[0] . str_replace('.', "$q[1].$q[0]", $name) . $q[1];
	}
protected function quoteNameString ( $ name , $ asSinglePart = false ) { $ q = $ this -> nameQuote . $ this -> nameQuote ; // Double quote reserved keyword $ name = str_replace ( $ q [ 1 ] , $ q [ 1 ] . $ q [ 1 ] , $ name ) ; if ( $ asSinglePart ) { return $ q [ 0 ] . $ name . $ q [ 1 ] ; } return $ q [ 0 ] . str_replace ( '.' , "$q[1].$q[0]" , $ name ) . $ q [ 1 ] ; }
Quote string coming from quoteName call.

@param   string   $name          Identifier name to be quoted.
@param   boolean  $asSinglePart  Treat the name as a single part of the identifier.

@return  string  Quoted identifier string.

@since   1.7.0
Quote string coming from quoteName call .