class utility

Methods

static void
jsAlert(string $str_message)

Static Method to send out javascript alert

static void
jsToastr($title, string $str_message, string $type = 'info')

Static Method to send out toastr notification

static void
createRandomString($int_num_string = 32)

Static Method to create random string

static void
loadSettings(object $obj_db)

Static Method to load application settings from database

static bool
havePrivilege(string $str_module_name, string $str_privilege_type = 'r')

Static Method to check privileges of application module form current user

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

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

static bool
isMobileBrowser()

Static method to detect mobile browser

static bool
isMemberLogin()

Static method to check if member already logged in or not

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

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

static void
loadUserTemplate(object $obj_db, $uid)

Static Method to load admin template

static 
dlCount($obj_db, $str_file_id, $str_member_id, $str_user_id)

No description

Details

at line 39
static void jsAlert(string $str_message)

Static Method to send out javascript alert

Parameters

string $str_message

Return Value

void

at line 59
static void jsToastr($title, string $str_message, string $type = 'info')

Static Method to send out toastr notification

Parameters

$title
string $str_message
string $type

[info, success, warning, error]

Return Value

void

at line 97
static void createRandomString($int_num_string = 32)

Static Method to create random string

Parameters

$int_num_string

Return Value

void

at line 116
static void loadSettings(object $obj_db)

Static Method to load application settings from database

Parameters

object $obj_db

Return Value

void

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

Parameters

string $str_module_name
string $str_privilege_type

Return Value

bool

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

Parameters

object $obj_db
string $str_log_type
string $str_value_id
string $str_location
string $str_log_msg
$str_log_submod
$str_log_action

Return Value

void

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

Parameters

object $obj_db
string $str_table_name
string $str_id_field
string $str_value_field
string $str_value
array $arr_cache

Return Value

mixed

at line 260
static bool isMobileBrowser()

Static method to detect mobile browser

Return Value

bool

this script is taken from http://detectmobilebrowsers.com/

at line 312
static bool isMemberLogin()

Static method to check if member already logged in or not

Return Value

bool

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

Parameters

$mix_input
$str_input_type
$bool_escape_sql
$bool_trim
$bool_strip_html

Return Value

mixed

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

Parameters

$str_xml_data

Return Value

string

at line 647
static void loadUserTemplate(object $obj_db, $uid)

Static Method to load admin template

Parameters

object $obj_db
$uid

Return Value

void

at line 660
static dlCount($obj_db, $str_file_id, $str_member_id, $str_user_id)

No description

Parameters

$obj_db
$str_file_id
$str_member_id
$str_user_id