Yoast\WP\Lib

ORM::hydrate()publicYoast 1.0

Hydrates (populate) this instance of the class from an associative array of data. This will usually be called only from inside the class, but it's public in case you need to call it directly.

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

Хуков нет.

Возвращает

ORM.

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

$ORM = new ORM();
$ORM->hydrate( $data );
$data(массив)
Data to populate table.
По умолчанию: []

Код ORM::hydrate() Yoast 22.4

public function hydrate( $data = [] ) {
	$this->data = $data;

	return $this;
}