src/Neevo/Parser.php
protected function parseFieldName($field, $table = false){
		// preg_replace callback behaviour
		if(is_array($field))
			$field = $field[0];
		if($field instanceof Literal)
			return $field->value;

		$field = trim($field);

		if($field === '*')
			return $field;

		if(strpos($field, ' '))
			return $field;

		$field = str_replace(':', '', $field);

		if(strpos($field, '.') !== false || $table === true){
			$prefix = $this->stmt->getConnection()->getPrefix();
			$field = $prefix . $field;
		}

		return $this->stmt->getConnection()->getDriver()->escape($field, Manager::IDENTIFIER);
	}
protected function parseFieldName($field, $table = false){
		// preg_replace callback behaviour
		if(is_array($field))
			$field = $field[0];
		if($field instanceof Literal)
			return $field->value;

		$field = trim($field);

		if($field === '*')
			return $field;

		if(strpos($field, ' '))
			return $field;

		$field = str_replace(':', '', $field);

		if(strpos($field, '.') !== false || $table === true){
			$prefix = $this->stmt->getConnection()->getPrefix();
			$field = $prefix . $field;
		}

		return $this->stmt->getConnection()->getDriver()->escape($field, Manager::IDENTIFIER);
	}
protected function parseFieldName ( $ field , $ table = false ) { // preg_replace callback behaviour if ( is_array ( $ field ) ) $ field = $ field [ 0 ] ; if ( $ field instanceof Literal ) return $ field -> value ; $ field = trim ( $ field ) ; if ( $ field === '*' ) return $ field ; if ( strpos ( $ field , ' ' ) ) return $ field ; $ field = str_replace ( ':' , '' , $ field ) ; if ( strpos ( $ field , '.' ) !== false || $ table === true ) { $ prefix = $ this -> stmt -> getConnection ( ) -> getPrefix ( ) ; $ field = $ prefix . $ field ; } return $ this -> stmt -> getConnection ( ) -> getDriver ( ) -> escape ( $ field , Manager :: IDENTIFIER ) ; }
Parses column name.
@param string|array|Literal $field
@param bool $table Parse table name.
@return string
Parses column name .