LLMS_Abstract_Database_Store::to_array()

Retrieve object as an array


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.database.store.php

	public function to_array() {

		$this->hydrate();
		return array_merge( array_combine( array_keys( $this->primary_key ), array( $this->id ) ), $this->data );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.36.0 Hydrate before returning the array.
3.34.0 Return the item ID instead of item format as the value of the primary key.
3.14.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.