Yoast\WP\Lib
ORM::__construct
"Private" constructor; shouldn't be called directly. Use the ORM::for_table factory method instead.
Метод класса: ORM{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->__construct( $table_name, $data );
- $table_name(строка) (обязательный)
- Table name.
- $data(массив)
- Data to populate table.
По умолчанию: []
Код ORM::__construct() ORM:: construct Yoast 26.3
protected function __construct( $table_name, $data = [] ) {
$this->table_name = $table_name;
$this->data = $data;
}