Yoast\WP\Lib
ORM::quote_identifier_part
Quotes a single part of an identifier, using the identifier quote character specified in the config (or autodetected).
Метод класса: ORM{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->quote_identifier_part( $part );
- $part(строка) (обязательный)
- The part to quote.
Код ORM::quote_identifier_part() ORM::quote identifier part Yoast 26.5
protected function quote_identifier_part( $part ) {
if ( $part === '*' ) {
return $part;
}
$quote_character = '`';
// Double up any identifier quotes to escape them.
return $quote_character . \str_replace( $quote_character, $quote_character . $quote_character, $part ) . $quote_character;
}