Yoast\WP\Lib

ORM::as_array()publicYoast 1.0

Returns the raw data wrapped by this ORM instance as an associative array. Column names may optionally be supplied as arguments, if so, only those keys will be returned.

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

Хуков нет.

Возвращает

Массив. Associative array of the raw data.

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

$ORM = new ORM();
$ORM->as_array();

Код ORM::as_array() Yoast 22.4

public function as_array() {
	if ( \func_num_args() === 0 ) {
		return $this->data;
	}
	$args = \func_get_args();

	return \array_intersect_key( $this->data, \array_flip( $args ) );
}