LLMS_REST_Table_API_Keys::get_results( array $args = array() )

Execute a query to retrieve results from the table


Parameters Parameters

$args

(array) (Optional) Array of query args.

Default value: array()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/admin/tables/class-llms-rest-table-api-keys.php

	public function get_results( $args = array() ) {

		global $wpdb;

		$rows = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}lifterlms_api_keys", ARRAY_A ); // no-cache ok.

		$tbody_data = array();
		foreach ( $rows as $data ) {
			$key          = new LLMS_REST_API_Key( $data['id'], false );
			$tbody_data[] = $key->setup( $data );
		}

		$this->tbody_data = $tbody_data;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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