Yoast\WP\Lib
Model::set_table_name
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() Model::set table name Yoast 26.3
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 );
}