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