Yoast\WP\Lib

ORM::for_table()public staticYoast 1.0

Factory method, return an instance of this class bound to the supplied table name.

A repeat of content in parent::for_table, so that created class is ORM.

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

Хуков нет.

Возвращает

ORM. Instance of the ORM.

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

$result = ORM::for_table( $table_name );
$table_name(строка) (обязательный)
The table to create instance for.

Код ORM::for_table() Yoast 22.3

public static function for_table( $table_name ) {
	return new static( $table_name, [] );
}