Yoast\WP\Lib
ORM::quote_identifier
Quotes a string that is used as an identifier (table names, column names etc) or an array containing multiple identifiers. This method can also deal with dot-separated identifiers eg table.column.
Метод класса: ORM{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->quote_identifier( $identifier );
- $identifier(строка|string[]) (обязательный)
- One or more identifiers.
Код ORM::quote_identifier() ORM::quote identifier Yoast 26.5
protected function quote_identifier( $identifier ) {
if ( \is_array( $identifier ) ) {
$result = \array_map( [ $this, 'quote_one_identifier' ], $identifier );
return \implode( ', ', $result );
}
else {
return $this->quote_one_identifier( $identifier );
}
}