Yoast\WP\Lib
ORM::quote_one_identifier
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{}
Хуков нет.
Возвращает
string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->quote_one_identifier( $identifier );
- $identifier(строка|string[]) (обязательный)
- One or more identifiers.
Код ORM::quote_one_identifier() ORM::quote one identifier Yoast 28.9
protected function quote_one_identifier( $identifier ) {
$parts = \explode( '.', $identifier );
$parts = \array_map( [ $this, 'quote_identifier_part' ], $parts );
return \implode( '.', $parts );
}