Skip to content

Commit

Permalink
More complete examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 1, 2019
1 parent 5d9a7e0 commit c7e4cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion htdocs/adherents/class/api_members.class.php
Expand Up @@ -86,7 +86,8 @@ public function get($id)
* @param int $limit Limit for list
* @param int $page Page number
* @param string $typeid ID of the type of member
* @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')"
* @param string $sqlfilters Other criteria to filter answers separated by a comma.
* Example: "(t.ref:like:'SO-%') and ((t.date_creation:<:'20160101') or (t.nature:is:NULL))"
* @return array Array of member objects
*
* @throws RestException
Expand Down
2 changes: 1 addition & 1 deletion htdocs/api/class/api.class.php
Expand Up @@ -279,7 +279,7 @@ protected function _checkFilters($sqlfilters)
/**
* Function to forge a SQL criteria
*
* @param array $matches Array of found string by regex search
* @param array $matches Array of found string by regex search. Example: "t.ref:like:'SO-%'" or "t.date_creation:<:'20160101'" or "t.nature:is:NULL"
* @return string Forged criteria. Example: "t.field like 'abc%'"
*/
protected static function _forge_criteria_callback($matches)
Expand Down

0 comments on commit c7e4cd7

Please sign in to comment.