utility
class utility
Methods
Static Method to send out javascript alert
Static Method to send out toastr notification
Static Method to create random string
Static Method to load application settings from database
Static Method to check privileges of application module form current user
Static Method to write application activities logs
Static Method to get an ID of database table record
Static method to detect mobile browser
Static method to check if member already logged in or not
Static method to filter data
Static method to convert XML entities Code taken and modified from: Matt Robinson at http://inanimatt.com/php-convert-entities.html
Static Method to load admin template
No description
Details
at line 39
static void
jsAlert(string $str_message)
Static Method to send out javascript alert
at line 59
static void
jsToastr($title, string $str_message, string $type = 'info')
Static Method to send out toastr notification
at line 97
static void
createRandomString($int_num_string = 32)
Static Method to create random string
at line 116
static void
loadSettings(object $obj_db)
Static Method to load application settings from database
at line 149
static bool
havePrivilege(string $str_module_name, string $str_privilege_type = 'r')
Static Method to check privileges of application module form current user
at line 185
static void
writeLogs(object $obj_db, string $str_log_type, string $str_value_id, string $str_location, string $str_log_msg, $str_log_submod = '', $str_log_action = '')
Static Method to write application activities logs
at line 219
static mixed
getID(object $obj_db, string $str_table_name, string $str_id_field, string $str_value_field, string $str_value, array $arr_cache = false)
Static Method to get an ID of database table record
at line 260
static bool
isMobileBrowser()
Static method to detect mobile browser
at line 312
static bool
isMemberLogin()
Static method to check if member already logged in or not
at line 329
static mixed
filterData($mix_input, $str_input_type = 'get', $bool_escape_sql = true, $bool_trim = true, $bool_strip_html = false)
Static method to filter data
at line 382
static string
convertXMLentities($str_xml_data)
Static method to convert XML entities Code taken and modified from: Matt Robinson at http://inanimatt.com/php-convert-entities.html
at line 647
static void
loadUserTemplate(object $obj_db, $uid)
Static Method to load admin template
at line 660
static
dlCount($obj_db, $str_file_id, $str_member_id, $str_user_id)
No description