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


Top ↑

Return Return

(array|false) key=>val array of data or false when record not found


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: