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()
Return Return
(void)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |