Core.php
Table of Contents
Functions
- class_SetProperties() : mixed
- class_getProperty() : mixed
- class_toArray() : mixed
- class_toMultiArray() : mixed
- array_getSingleLevel() : mixed
- array_csv() : string
- array_rows_csv() : string
- array_replaceKeys() : mixed
- array_removeByValue() : mixed
- sql_BuildWhereClause() : mixed
- sha256_generateToken() : mixed
- _rv() : mixed
- strex_randomString() : mixed
- strex_getRangeString() : mixed
- strex_replaceByArray() : mixed
- strex_startsWith() : mixed
- strex_startsWithIgnorecase() : mixed
- strex_endsWith() : mixed
- strex_endsWithIgnorecase() : mixed
- strex_contains() : mixed
- strex_containsIgnorecase() : mixed
- strex_pathCombine() : string
- Combines Parts in an Array using the delimiter
- strex_limitToChars() : true
- Limits a String to only some allowed characters
- regex_replace() : string
- Replaces Occurences defined by Patterns using Regex
- php_getDeclaredClassesOfType() : mixed
- php_autoload() : mixed
- dir_includeFiles() : mixed
- dir_getFiles() : mixed
- dir_getDirectories() : mixed
- file_GetNameWithoutExtension() : mixed
- sess_get() : mixed
- query_get() : mixed
- post_get() : mixed
- header_get() : mixed
- arr_get() : mixed
- boolvalex() : mixed
- mail_splitaddresses() : array<string|int, mixed>
- sql_GetWhereSelector() : mixed
- sql_BuildOptions() : mixed
- sql_BuildList() : mixed
- sql_BuildBaseFilter() : array<string|int, mixed>
- sql_BuildInsertString() : mixed
- sql_BuildUpdateString() : mixed
- php_safe_redirect() : mixed
- safe_redirect() : mixed
- php_get_current_url() : mixed
- html_sanitize() : mixed
- time_diff() : int|float
- Gets the Difference between two times
- calc_date_diff() : string|array<string|int, float>
- Calculates the Difference between two Dates
- date_toDecimalHours() : mixed
- Converts a Time HH:mm to a Decimal Time
- decimal_HoursToFormat() : string
- Converts a Decimal Time to HH:mm
- convertToHoursMins() : string
- Converts a Time in Minutes to HH:mm
- days_between_dates() : float
- Returns the Days between two dates
- is_expired() : bool
- Checks if a Date is Expired
- php_getUploadedFiles() : array<string|int, mixed>|null
- Gets all Uploaded Files for a multi File POST Upload
- php_getPostFieldsStartsWith() : array<string|int, mixed>|null
- Gets all Post Fields starting with
- get_url_allowed_chars() : string
- Gets all Allowed characters in an URL
- make_page_slug() : string|null
- Gets a Slug for a given string
- make_file_name() : string|array<string|int, string>|null
- Limits the string to a FileName
- strex_validateEuVatID() : bool
- Validates an EU Vat ID
- strex_validateName() : bool
- Validates a Name
- strex_validatePhone() : bool
- Validates a Phone Number
- strex_parseName() : null|array<string|int, mixed>
- Parses a Name from a string (must starts with firstname)
- options() : mixed
- Gets rendered Options
- options_inline() : string
- Render Inline Options
- options_dropdown() : string
- Render DropDown Options
- option() : array<string|int, mixed>
- Creates a new Option Item
- modal_option() : void
- Creates a new Modal Option Item
- check_date() : bool
- Checks if a Date is valid
- check_time() : int|false
- Checks if a Time is valid
- br2ln() : mixed
- Reverse nl2br
- resize_image() : never
- Resizes an Image to a destination size Supported: image/jpeg image/gif image/png
- validate_file() : bool
- Validates a File
- validate_image() : bool
- Validates an Image File
- validate_json() : bool
- Checks whether a String is valid Json
- scale_by_ratio() : array<string|int, mixed>
- Scales a Size by Ratio
- get_dates_in_range() : array<string|int, mixed>|null
- Gets all Dates in a Range
- is_weekday() : bool
- Checks if a Date is a WeekDay
- format_time() : string|false
- Formats the time using the current active locale
- format_date() : string|false
- Formats the date using the current active locale
- format_datetime() : string|false
- Formats the datetime using the current active locale
- format_decimal() : string
- Formats a decimal to local format
- format_price() : null|string
- Formats a Price to Local Format (without currency symbol)
- parse_price() : float
- Parses a price the local format
- parse_decimal() : float
- Parses a decimal from the local format
- get_ip() : mixed
- Returns the current remote peers ip address
- get_auth_header() : mixed
- Gets the Value of the Authorization Header
- parse_auth_header() : false|array<string|int, string>
- Parses the Authorization Header
- __setVar() : void
- Sets a Var in the Global Directory
- __getVar() : mixed
- Gets a Var from the Global Directory
- sanitize_output() : mixed
- Sanitizes the HTML Output
- getAttributesFromField() : array<string|int, mixed>
- Gets the Value of a Key in an Array
- getAttributeIfExists() : mixed
- Gets a specific Attribute from a Field if it exists
- isValidUUIDv4() : mixed
- com_create_guid() : mixed
- create_seeded_guid() : string
- Creates a Seeded GUID
- bb_setCookie() : bool
- Sets a Cookie
Functions
class_SetProperties()
class_SetProperties(array<string|int, mixed> $array, mixed &$obj) : mixed
Parameters
- $array : array<string|int, mixed>
- $obj : mixed
class_getProperty()
class_getProperty(mixed $obj, mixed $property) : mixed
Parameters
- $obj : mixed
- $property : mixed
class_toArray()
class_toArray(object|null $obj) : mixed
Parameters
- $obj : object|null
class_toMultiArray()
class_toMultiArray(array<string|int, mixed> $objArray) : mixed
Parameters
- $objArray : array<string|int, mixed>
array_getSingleLevel()
array_getSingleLevel(array<string|int, mixed> $multiLevel[, mixed $delimiter = "->" ][, mixed $onlyStrings = false ]) : mixed
Parameters
- $multiLevel : array<string|int, mixed>
- $delimiter : mixed = "->"
- $onlyStrings : mixed = false
array_csv()
array_csv(array<string|int, mixed> $fields) : string
Parameters
- $fields : array<string|int, mixed>
Return values
stringarray_rows_csv()
array_rows_csv(array<string|int, mixed> $rows) : string
Parameters
- $rows : array<string|int, mixed>
Return values
stringarray_replaceKeys()
array_replaceKeys(mixed $oldKey, mixed $newKey, array<string|int, mixed> $input) : mixed
Parameters
- $oldKey : mixed
- $newKey : mixed
- $input : array<string|int, mixed>
array_removeByValue()
array_removeByValue(mixed &$array, mixed $value) : mixed
Parameters
- $array : mixed
- $value : mixed
sql_BuildWhereClause()
sql_BuildWhereClause(array<string|int, mixed>|null $whereData) : mixed
Parameters
- $whereData : array<string|int, mixed>|null
sha256_generateToken()
sha256_generateToken([mixed $seed = null ]) : mixed
Parameters
- $seed : mixed = null
_rv()
_rv(IViewController $viewController[, mixed $authenticatedUser = null ][, mixed $exit = false ]) : mixed
Parameters
- $viewController : IViewController
- $authenticatedUser : mixed = null
- $exit : mixed = false
strex_randomString()
strex_randomString([mixed $length = 10 ]) : mixed
Parameters
- $length : mixed = 10
strex_getRangeString()
strex_getRangeString(mixed $str[, mixed $isNumericRange = false ][, mixed $uniqueItems = true ][, string $baseDelimiter = "," ][, string $rangeDelimiter = "-" ]) : mixed
Parameters
- $str : mixed
- $isNumericRange : mixed = false
- $uniqueItems : mixed = true
- $baseDelimiter : string = ","
- $rangeDelimiter : string = "-"
strex_replaceByArray()
strex_replaceByArray(mixed $str, array<string|int, mixed> $replace[, mixed $prefix = "" ][, mixed $suffix = "" ][, mixed $replaceValues = false ][, mixed $twoLevelReplacements = false ]) : mixed
Parameters
- $str : mixed
- $replace : array<string|int, mixed>
- $prefix : mixed = ""
- $suffix : mixed = ""
- $replaceValues : mixed = false
- $twoLevelReplacements : mixed = false
strex_startsWith()
strex_startsWith(mixed $string, mixed $startsWith) : mixed
Parameters
- $string : mixed
- $startsWith : mixed
strex_startsWithIgnorecase()
strex_startsWithIgnorecase(mixed $string, mixed $startsWith) : mixed
Parameters
- $string : mixed
- $startsWith : mixed
strex_endsWith()
strex_endsWith(mixed $string, mixed $endsWith) : mixed
Parameters
- $string : mixed
- $endsWith : mixed
strex_endsWithIgnorecase()
strex_endsWithIgnorecase(mixed $string, mixed $endsWith) : mixed
Parameters
- $string : mixed
- $endsWith : mixed
strex_contains()
strex_contains(mixed $string, mixed $what) : mixed
Parameters
- $string : mixed
- $what : mixed
strex_containsIgnorecase()
strex_containsIgnorecase(mixed $string, mixed $what) : mixed
Parameters
- $string : mixed
- $what : mixed
strex_pathCombine()
Combines Parts in an Array using the delimiter
strex_pathCombine(array<string|int, mixed> $parts[, string $delimiter = "/" ]) : string
Parameters
- $parts : array<string|int, mixed>
-
All Parts to combine
- $delimiter : string = "/"
-
Delimiter
Return values
stringstrex_limitToChars()
Limits a String to only some allowed characters
strex_limitToChars(mixed $input, mixed $allowedChars[, string $replaceTo = "" ]) : true
Parameters
- $input : mixed
- $allowedChars : mixed
- $replaceTo : string = ""
Return values
trueregex_replace()
Replaces Occurences defined by Patterns using Regex
regex_replace(string $in, array<string|int, mixed> $patterns) : string
Parameters
- $in : string
-
StringStack for Replacement
- $patterns : array<string|int, mixed>
-
All Patterns to replace ("PATTERN (A-z*)" => "Replace $1")
Return values
stringphp_getDeclaredClassesOfType()
php_getDeclaredClassesOfType(mixed $class) : mixed
Parameters
- $class : mixed
php_autoload()
php_autoload(mixed $directory[, bool $includeSubdirs = false ]) : mixed
Parameters
- $directory : mixed
- $includeSubdirs : bool = false
dir_includeFiles()
dir_includeFiles(mixed $directory[, array<string|int, mixed>|null $extFilter = null ][, bool $includeSubdirs = false ]) : mixed
Parameters
- $directory : mixed
- $extFilter : array<string|int, mixed>|null = null
- $includeSubdirs : bool = false
dir_getFiles()
dir_getFiles(mixed $directory[, array<string|int, mixed>|null $extFilter = null ][, bool $includeSubdirs = false ][, bool $useFullPath = true ]) : mixed
Parameters
- $directory : mixed
- $extFilter : array<string|int, mixed>|null = null
- $includeSubdirs : bool = false
- $useFullPath : bool = true
dir_getDirectories()
dir_getDirectories(mixed $directory[, bool $includeSubdirs = false ]) : mixed
Parameters
- $directory : mixed
- $includeSubdirs : bool = false
file_GetNameWithoutExtension()
file_GetNameWithoutExtension(mixed $fileName) : mixed
Parameters
- $fileName : mixed
sess_get()
sess_get(mixed $key[, mixed $null = null ]) : mixed
Parameters
- $key : mixed
- $null : mixed = null
query_get()
query_get(mixed $key[, mixed $null = null ]) : mixed
Parameters
- $key : mixed
- $null : mixed = null
post_get()
post_get(mixed $key[, mixed $null = null ]) : mixed
Parameters
- $key : mixed
- $null : mixed = null
header_get()
header_get(mixed $header[, mixed $null = null ]) : mixed
Parameters
- $header : mixed
- $null : mixed = null
arr_get()
arr_get(mixed $arr, mixed $key[, mixed $default = null ]) : mixed
Parameters
- $arr : mixed
- $key : mixed
- $default : mixed = null
boolvalex()
boolvalex(mixed $value) : mixed
Parameters
- $value : mixed
mail_splitaddresses()
mail_splitaddresses(mixed $addresses) : array<string|int, mixed>
Parameters
- $addresses : mixed
Return values
array<string|int, mixed>sql_GetWhereSelector()
sql_GetWhereSelector(mixed $fieldName, mixed $idValue[, mixed $useLike = false ]) : mixed
Parameters
- $fieldName : mixed
- $idValue : mixed
- $useLike : mixed = false
sql_BuildOptions()
sql_BuildOptions(array<string|int, mixed>|null $options) : mixed
Parameters
- $options : array<string|int, mixed>|null
sql_BuildList()
sql_BuildList(array<string|int, mixed>|null $options) : mixed
Parameters
- $options : array<string|int, mixed>|null
sql_BuildBaseFilter()
sql_BuildBaseFilter(array<string|int, mixed>|null $filter) : array<string|int, mixed>
Parameters
- $filter : array<string|int, mixed>|null
Return values
array<string|int, mixed>sql_BuildInsertString()
sql_BuildInsertString(object $obj[, array<string|int, mixed>|null $ignoreFields = null ][, array<string|int, mixed>|null $skipFieldsIfEmpty = null ][, array<string|int, mixed>|null $notNullableFields = null ][, bool $hideInsertIndex = false ]) : mixed
Parameters
- $obj : object
- $ignoreFields : array<string|int, mixed>|null = null
- $skipFieldsIfEmpty : array<string|int, mixed>|null = null
- $notNullableFields : array<string|int, mixed>|null = null
- $hideInsertIndex : bool = false
sql_BuildUpdateString()
sql_BuildUpdateString(object $obj[, array<string|int, mixed>|null $ignoreFields = null ][, array<string|int, mixed>|null $skipFieldsIfEmpty = null ][, array<string|int, mixed>|null $notNullableFields = null ][, mixed $idField = null ]) : mixed
Parameters
- $obj : object
- $ignoreFields : array<string|int, mixed>|null = null
- $skipFieldsIfEmpty : array<string|int, mixed>|null = null
- $notNullableFields : array<string|int, mixed>|null = null
- $idField : mixed = null
php_safe_redirect()
php_safe_redirect(mixed $title, mixed $url[, mixed $exit = true ]) : mixed
Parameters
- $title : mixed
- $url : mixed
- $exit : mixed = true
safe_redirect()
safe_redirect(mixed $url) : mixed
Parameters
- $url : mixed
php_get_current_url()
php_get_current_url([mixed $includeQuery = false ]) : mixed
Parameters
- $includeQuery : mixed = false
html_sanitize()
html_sanitize(mixed $buffer) : mixed
Parameters
- $buffer : mixed
time_diff()
Gets the Difference between two times
time_diff(mixed $time1, mixed $time2) : int|float
Parameters
- $time1 : mixed
- $time2 : mixed
Return values
int|floatcalc_date_diff()
Calculates the Difference between two Dates
calc_date_diff(mixed $date1, mixed $date2[, bool $returnAsDate = false ]) : string|array<string|int, float>
Parameters
- $date1 : mixed
-
Date one
- $date2 : mixed
-
Date two
- $returnAsDate : bool = false
-
Return the result formatted as Y-m-d ?
Return values
string|array<string|int, float>date_toDecimalHours()
Converts a Time HH:mm to a Decimal Time
date_toDecimalHours(mixed $time) : mixed
Parameters
- $time : mixed
-
Time in HH:mm format (H:i in PHP)
decimal_HoursToFormat()
Converts a Decimal Time to HH:mm
decimal_HoursToFormat(mixed $dbl) : string
Parameters
- $dbl : mixed
-
Decimal Time
Return values
stringconvertToHoursMins()
Converts a Time in Minutes to HH:mm
convertToHoursMins(mixed $time[, string $format = '%02d:%02d' ]) : string
Parameters
- $time : mixed
-
Time in Minutes
- $format : string = '%02d:%02d'
-
Format
Return values
stringdays_between_dates()
Returns the Days between two dates
days_between_dates(mixed $date1, mixed $date2[, mixed $preventNegative = true ]) : float
Parameters
- $date1 : mixed
-
Date 1
- $date2 : mixed
-
Date 2
- $preventNegative : mixed = true
Return values
floatis_expired()
Checks if a Date is Expired
is_expired(mixed $date, mixed $expirationDays) : bool
Parameters
- $date : mixed
-
Date to check
- $expirationDays : mixed
-
Expiration days
Return values
boolphp_getUploadedFiles()
Gets all Uploaded Files for a multi File POST Upload
php_getUploadedFiles(mixed $name) : array<string|int, mixed>|null
Parameters
- $name : mixed
-
Name of the File Field
Return values
array<string|int, mixed>|nullphp_getPostFieldsStartsWith()
Gets all Post Fields starting with
php_getPostFieldsStartsWith(mixed $startsWith[, bool $includeValues = false ]) : array<string|int, mixed>|null
Parameters
- $startsWith : mixed
-
Chars the POST Field starts with
- $includeValues : bool = false
-
If true, the Key will be the field without startswith and the value is the POST Value
Return values
array<string|int, mixed>|nullget_url_allowed_chars()
Gets all Allowed characters in an URL
get_url_allowed_chars() : string
Return values
stringmake_page_slug()
Gets a Slug for a given string
make_page_slug(mixed $str[, mixed $tolower = true ]) : string|null
Parameters
- $str : mixed
- $tolower : mixed = true
Return values
string|nullmake_file_name()
Limits the string to a FileName
make_file_name(mixed $str[, bool $tolower = false ]) : string|array<string|int, string>|null
Parameters
- $str : mixed
- $tolower : bool = false
Return values
string|array<string|int, string>|nullstrex_validateEuVatID()
Validates an EU Vat ID
strex_validateEuVatID(mixed $vatId) : bool
Parameters
- $vatId : mixed
-
Vat ID
Return values
boolstrex_validateName()
Validates a Name
strex_validateName(mixed $name) : bool
Parameters
- $name : mixed
-
Input Name
Return values
boolstrex_validatePhone()
Validates a Phone Number
strex_validatePhone(mixed $phone) : bool
Parameters
- $phone : mixed
Return values
boolstrex_parseName()
Parses a Name from a string (must starts with firstname)
strex_parseName(mixed $name[, bool $middleName = false ]) : null|array<string|int, mixed>
Parameters
- $name : mixed
-
Input name
- $middleName : bool = false
-
Parse Middle Name, will include Middle Names as seperat parts, ID: 0 First Name, ID 1: Middle Name, ID 3: Last name
Return values
null|array<string|int, mixed> —Will return Array with Names, by default ID 0: First Name, ID: 1 Last name
options()
Gets rendered Options
options(array<string|int, mixed>|null $options[, mixed $shown = 3 ][, mixed $isAdvancedTable = true ]) : mixed
Parameters
- $options : array<string|int, mixed>|null
- $shown : mixed = 3
- $isAdvancedTable : mixed = true
options_inline()
Render Inline Options
options_inline(null|array<string|int, mixed> $options, mixed $isAdvancedTable) : string
Parameters
- $options : null|array<string|int, mixed>
- $isAdvancedTable : mixed
Return values
stringoptions_dropdown()
Render DropDown Options
options_dropdown(null|array<string|int, mixed> $options) : string
Parameters
- $options : null|array<string|int, mixed>
Return values
stringoption()
Creates a new Option Item
option(mixed $text, mixed $icon, mixed $href[, array<string|int, mixed>|null $hrefAttributes = null ][, mixed $autoApplyTitleAttribute = true ]) : array<string|int, mixed>
Parameters
- $text : mixed
-
Text for the Item
- $icon : mixed
-
Icon class or null
- $href : mixed
-
Link
- $hrefAttributes : array<string|int, mixed>|null = null
- $autoApplyTitleAttribute : mixed = true
Return values
array<string|int, mixed>modal_option()
Creates a new Modal Option Item
modal_option(mixed $text, mixed $icon, mixed $modalId[, bool $reusable = false ][, array<string|int, mixed>|null $queryParameters = null ][, null|array<string|int, mixed> $customAttributes = null ][, bool $autoApplyTitleAttribute = true ]) : void
Parameters
- $text : mixed
-
Text for the Item
- $icon : mixed
-
Icon class or null
- $modalId : mixed
-
Modal ID
- $reusable : bool = false
- $queryParameters : array<string|int, mixed>|null = null
- $customAttributes : null|array<string|int, mixed> = null
- $autoApplyTitleAttribute : bool = true
check_date()
Checks if a Date is valid
check_date(mixed $date[, bool $isTime = false ]) : bool
Parameters
- $date : mixed
-
Date to check
- $isTime : bool = false
-
is the Date already converted to time?
Return values
boolcheck_time()
Checks if a Time is valid
check_time(mixed $time) : int|false
Parameters
- $time : mixed
-
Time in HH:MM Format
Return values
int|falsebr2ln()
Reverse nl2br
br2ln(mixed $str[, string $lbr = "
" ]) : mixed
Parameters
- $str : mixed
-
String to Replace
- $lbr : string = " "
-
Linebreak Characters
resize_image()
Resizes an Image to a destination size Supported: image/jpeg image/gif image/png
resize_image(mixed $imagePath, mixed $width, mixed $height[, mixed $fileName = null ]) : never
Parameters
- $imagePath : mixed
- $width : mixed
- $height : mixed
- $fileName : mixed = null
Return values
nevervalidate_file()
Validates a File
validate_file(mixed $fileName[, null|array<string|int, mixed> $allowedMimeTypes = null ][, mixed $maxFileSize = null ]) : bool
Parameters
- $fileName : mixed
-
Full path to the File
- $allowedMimeTypes : null|array<string|int, mixed> = null
-
Array with allowed mime types
- $maxFileSize : mixed = null
-
Maximum File Size
Return values
boolvalidate_image()
Validates an Image File
validate_image(mixed $fileName[, null|array<string|int, mixed> $allowedMimeTypes = null ][, mixed $maxFileSize = null ]) : bool
Parameters
- $fileName : mixed
-
Full File Name
- $allowedMimeTypes : null|array<string|int, mixed> = null
-
Array with allowed mime types
- $maxFileSize : mixed = null
-
Maximum File Size
Return values
boolvalidate_json()
Checks whether a String is valid Json
validate_json(mixed $string) : bool
Parameters
- $string : mixed
Return values
boolscale_by_ratio()
Scales a Size by Ratio
scale_by_ratio(mixed $width, mixed $height, mixed $newWidth[, mixed $newHeight = null ][, bool $preventUpscale = true ]) : array<string|int, mixed>
Parameters
- $width : mixed
-
Original Width
- $height : mixed
-
Original Height
- $newWidth : mixed
-
Scaled Width or null to scale width
- $newHeight : mixed = null
-
Scaled Height or null to scale height
- $preventUpscale : bool = true
-
Prevent Upscaling
Return values
array<string|int, mixed>get_dates_in_range()
Gets all Dates in a Range
get_dates_in_range(mixed $firstDate, mixed $lastDate[, callable $checkDateCallback = null ]) : array<string|int, mixed>|null
Parameters
- $firstDate : mixed
- $lastDate : mixed
- $checkDateCallback : callable = null
Return values
array<string|int, mixed>|nullis_weekday()
Checks if a Date is a WeekDay
is_weekday(mixed $date[, bool $isTime = false ][, array<string|int, mixed> $weekDays = [1, 2, 3, 4, 5] ]) : bool
Parameters
- $date : mixed
-
Date to check
- $isTime : bool = false
-
Is the Date a Time
- $weekDays : array<string|int, mixed> = [1, 2, 3, 4, 5]
-
WeekDays
Return values
boolformat_time()
Formats the time using the current active locale
format_time(mixed $time[, bool $isTime = false ]) : string|false
Parameters
- $time : mixed
-
Time to format
- $isTime : bool = false
-
is the given Time already a parsed time?
Return values
string|falseformat_date()
Formats the date using the current active locale
format_date(mixed $time[, bool $isTime = false ]) : string|false
Parameters
- $time : mixed
-
Time to format
- $isTime : bool = false
-
is the given Time already a parsed time?
Return values
string|falseformat_datetime()
Formats the datetime using the current active locale
format_datetime(mixed $time[, bool $isTime = false ]) : string|false
Parameters
- $time : mixed
-
Time to format
- $isTime : bool = false
-
is the given Time already a parsed time?
Return values
string|falseformat_decimal()
Formats a decimal to local format
format_decimal(float $decimal[, mixed $decimals = 2 ][, mixed $trimZeros = false ]) : string
Parameters
- $decimal : float
-
Decimal
- $decimals : mixed = 2
- $trimZeros : mixed = false
Return values
stringformat_price()
Formats a Price to Local Format (without currency symbol)
format_price(mixed $price) : null|string
Parameters
- $price : mixed
Return values
null|stringparse_price()
Parses a price the local format
parse_price(string $localized) : float
Parameters
- $localized : string
-
Decimal
Return values
floatparse_decimal()
Parses a decimal from the local format
parse_decimal(string $localized) : float
Parameters
- $localized : string
-
Decimal
Return values
floatget_ip()
Returns the current remote peers ip address
get_ip() : mixed
get_auth_header()
Gets the Value of the Authorization Header
get_auth_header([string $headerName = "AUTHORIZATION" ][, bool $parseHeader = false ]) : mixed
Parameters
- $headerName : string = "AUTHORIZATION"
-
Name of the Auth Header
- $parseHeader : bool = false
parse_auth_header()
Parses the Authorization Header
parse_auth_header(mixed $headerData) : false|array<string|int, string>
Parameters
- $headerData : mixed
Return values
false|array<string|int, string>__setVar()
Sets a Var in the Global Directory
__setVar(mixed $var, mixed $val) : void
Parameters
- $var : mixed
-
Key
- $val : mixed
-
Value
__getVar()
Gets a Var from the Global Directory
__getVar(mixed $var[, mixed $default = NULL ]) : mixed
Parameters
- $var : mixed
-
Key
- $default : mixed = NULL
-
Default Value, if Key not found
sanitize_output()
Sanitizes the HTML Output
sanitize_output(mixed $buffer) : mixed
Parameters
- $buffer : mixed
getAttributesFromField()
Gets the Value of a Key in an Array
getAttributesFromField(string $class, string $fieldName) : array<string|int, mixed>
Parameters
- $class : string
- $fieldName : string
Tags
Return values
array<string|int, mixed>getAttributeIfExists()
Gets a specific Attribute from a Field if it exists
getAttributeIfExists(string $class, string $fieldName, string $attributeName) : mixed
Parameters
- $class : string
-
The Class
- $fieldName : string
-
The Field Name
- $attributeName : string
-
The Attribute Name
Tags
isValidUUIDv4()
isValidUUIDv4(mixed $uuid) : mixed
Parameters
- $uuid : mixed
com_create_guid()
com_create_guid() : mixed
create_seeded_guid()
Creates a Seeded GUID
create_seeded_guid(string $seed) : string
Parameters
- $seed : string
-
The Seed
Return values
stringbb_setCookie()
Sets a Cookie
bb_setCookie(mixed $name, mixed $value, mixed $expires[, string $samesite = "None" ]) : bool
Parameters
- $name : mixed
-
The Name of the Cookie
- $value : mixed
-
Value of the Cookie
- $expires : mixed
-
When the Cookie expires
- $samesite : string = "None"
-
If the Cookie is SameSite
Return values
bool —If the Cookie was set