Yoast\WP\Lib
ORM::for_table()
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() ORM::for table Yoast 24.0
public static function for_table( $table_name ) { return new static( $table_name, [] ); }