Yoast\WP\Lib
ORM::as_array
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{}
Хуков нет.
Возвращает
array. Associative array of the raw data.
Использование
$ORM = new ORM(); $ORM->as_array();
Код ORM::as_array() ORM::as array Yoast 28.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 ) );
}