Yoast\WP\Lib

ORM::quote_one_identifier()protectedYoast 1.0

Quotes a string that is used as an identifier (table names, column names etc). This method can also deal with dot-separated identifiers eg table.column.

Метод класса: ORM{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->quote_one_identifier( $identifier );
$identifier(строка|string[]) (обязательный)
One or more identifiers.

Код ORM::quote_one_identifier() Yoast 22.4

protected function quote_one_identifier( $identifier ) {
	$parts = \explode( '.', $identifier );
	$parts = \array_map( [ $this, 'quote_identifier_part' ], $parts );

	return \implode( '.', $parts );
}