LLMS_Abstract_Database_Store::to_array()
Retrieve object as an array
Return Return
(array)
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 ); }
Expand full source code Collapse full source code View on GitHub
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. |