mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
- Added method escapeLike to DB_Model to escape strings for LIKE operator
- Added JS include jqueryui to InfoCenter - Added left join to system.tbl_person_lock in infocenterData.php - Added field LockDate to InfoCenter filter - Added parameter markRow to InfoCenter filter - Added DragNDrop to FilterWidget to sort/remove the selected filter fields - FilterWidget now display the name of the loaded filter if available - Added the property "name" to the jsonb of filters to display the name of the loaded filter - Added the static method displayFilterName to the FilterWidget to display the name of the loaded filter - The collapsible panel in FilterWidget now shows/hides the fields selection, the filter operators and the inputs to save the custom filter - The GUI remembers if the collapsible panel should be closed or open - Added the "Apply" button to the filter operators - Added the markRow parameter to the FilterWidget, used to mark a row if one or more conditions are matched - Added the alternativeMarkRowClass to use a different class to mark a row - Added the public static function markRow to the FilterWidget
This commit is contained in:
@@ -540,6 +540,21 @@ class DB_Model extends FHC_Model
|
||||
return $this->db->escape($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method call the method escape_like_str from class CI_DB_driver, therefore:
|
||||
* this method should be used when strings are to be used in LIKE conditions so that LIKE wildcards (‘%’, ‘_’)
|
||||
* in the string are also properly escaped.
|
||||
* NOTE: The escape_like_str() method uses ‘!’ (exclamation mark) to escape special characters for LIKE conditions.
|
||||
* Because this method escapes partial strings that you would wrap in quotes yourself, it cannot automatically
|
||||
* add the ESCAPE '!' condition for you, and so you’ll have to manually do that.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function escapeLike($value)
|
||||
{
|
||||
return $this->db->escape_like_str($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert PG-Boolean to PHP-Boolean
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user