Example #1
0
 /**
  * Get special SQL from POSTed parameters for this field.
  *
  * @param  array			The row for the field to input
  * @param  integer		We're processing for the ith row
  * @return ?array			Tuple of SQL details (array: extra trans fields to search, array: extra plain fields to search, string: an extra table segment for a join, string: the name of the field to use as a title, if this is the title, extra WHERE clause stuff) (NULL: nothing special)
  */
 function inputted_to_sql_for_search($row, $i)
 {
     $param = get_param('option_' . strval($row['id']), '');
     if ($param != '') {
         $param = strval($GLOBALS['FORUM_DRIVER']->get_member_from_username($param));
     }
     return exact_match_sql($row, $i, 'long', $param);
 }
Example #2
0
 /**
  * Get special SQL from POSTed parameters for this field.
  *
  * @param  array			The row for the field to input
  * @param  integer		We're processing for the ith row
  * @return ?array			Tuple of SQL details (array: extra trans fields to search, array: extra plain fields to search, string: an extra table segment for a join, string: the name of the field to use as a title, if this is the title, extra WHERE clause stuff) (NULL: nothing special)
  */
 function inputted_to_sql_for_search($row, $i)
 {
     return exact_match_sql($row, $i);
 }