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 19.14

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