Yoast\WP\Lib
ORM::hydrate() public Yoast 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
. Null. Ничего.
Использование
$ORM = new ORM(); $ORM->hydrate( $data );
- $data(массив)
- Data to populate table.
Код ORM::hydrate() ORM::hydrate Yoast 16.1.1
public function hydrate( $data = [] ) {
$this->data = $data;
return $this;
}