PHP Класс Inpsyde\MultilingualPress\Database\WPDBTableStringReplacer

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Database\TableStringReplacer
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Constructor. Sets up the properties.
replace_string ( string $table, array $columns, string $search, string $replacement ) : integer Replaces one string with another all given columns of the given table at once.

Приватные методы

Метод Описание
get_replacements_sql ( array $columns, string $search, string $replacement ) : string Returns the according SQL string for replacing the given string with the given replacement in the given columns.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( )

replace_string() публичный метод

Replaces one string with another all given columns of the given table at once.
С версии: 3.0.0
public replace_string ( string $table, array $columns, string $search, string $replacement ) : integer
$table string The name of the table to replace the string in.
$columns array The names of all columns to replace the string in.
$search string The string to replace.
$replacement string The replacment.
Результат integer The number of affected rows.