Yoast\WP\Lib
Model::set_table_name() protected Yoast 1.0
Sets the table name for the given class name.
{} Это метод класса: Model{}
Хуков нет.
Возвращает
null.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_table_name( $class_name );
- $class_name(строка) (обязательный)
- The class to set the table name for.
Код Model::set_table_name() Model::set table name Yoast 15.9
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 );
}