Skip to content

Commit

Permalink
Documenting the get_table_result function
Browse files Browse the repository at this point in the history
  • Loading branch information
aldavigdis committed Jul 13, 2024
1 parent 87520f1 commit afffa1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Service/DKApiRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ public function get_result( string $path ): WP_Error|stdClass {
return $this->parse_wp_http_response( $request );
}

/**
* Get a result directly from a DK table
*
* @param string $table The DK table to check.
* @param array $fields The names of the fields to get.
* @param string $key The key to use for filtering (i.e. WHERE $key = $keyvalue).
* @param string $keyvalue They value to use for filtering.
*/
public function get_table_result(
string $table,
array $fields,
Expand Down

0 comments on commit afffa1e

Please sign in to comment.