Yoast\WP\Lib
ORM::quote_identifier() protected Yoast 1.0
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(строка/строка[]) (обязательный)
- One or more identifiers.
Код ORM::quote_identifier() ORM::quote identifier Yoast 15.6.2
protected function quote_identifier( $identifier ) {
if ( \is_array( $identifier ) ) {
$result = \array_map( [ $this, 'quote_one_identifier' ], $identifier );
return \join( ', ', $result );
}
else {
return $this->quote_one_identifier( $identifier );
}
}