Yoast\WP\Lib

Model::set_table_name()protectedYoast 1.0

Sets the table name for the given class name.

Метод класса: Model{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->set_table_name( $class_name );
$class_name(строка) (обязательный)
The class to set the table name for.

Код Model::set_table_name() Yoast 22.4

protected function set_table_name( $class_name ) {
	// Prepend namespace to the class name.
	$class = static::$auto_prefix_models . $class_name;

	$class::$table = static::get_table_name( $class_name );
}