Return a search option by looking for a value of a specific field and maybe a specific table
public getSearchOptionByField ( $field, $value, $table = '' ) : then | ||
$field | the field in which looking for the value (for example : table, name, etc) | |
$value | the value to look for in the field | |
$table | the table (default '') | |
return | then | search option array, or an empty array if not found |