Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Abstract_Database_Store::read( array|string $keys )
Read object data from the database
Description Description
Parameters Parameters
- $keys
-
(array|string) (Required) key name (or array of keys) to retrieve from the database
Return Return
(array|false) key=>val array of data or false when record not found
Source Source
File: includes/abstracts/llms.abstract.database.store.php
private function read( $keys ) { global $wpdb; if ( is_array( $keys ) ) { $keys = implode( ', ', $keys ); } $res = $wpdb->get_row( $wpdb->prepare( "SELECT {$keys} FROM {$this->get_table()} WHERE {$this->get_primary_key()} = %d", $this->id ), ARRAY_A ); return ! $res ? false : $res; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: