expUtil
in package
This is the class expUtil
Tags
Table of Contents
- browser_info() : array<string|int, mixed>
- Returns info about browser being used this should work on all server installation
- currency_to_float() : null|string|array<string|int, string>
- Converts a currency amount to the floating point value
- getOrigReferrer() : null
- returns original referrer url from ticket
- isNumberEqualTo() : bool
- function to compare float numbers for equality
- isNumberGreaterThan() : bool
- function to compare float numbers for greater than
- isNumberGreaterThanOrEqualTo() : bool
- function to compare float numbers for greater than or equality
- isNumberLessThan() : bool
- function to compare float numbers for less than
- isNumberLessThanOrEqualTo() : bool
- function to compare float numbers for less than or equality
- isReallyWritable() : bool
- isReallyWritable is an alternate implementation of is_writable that should work on a windows platform as well as Linux.
- right() : string
- function to return the right side of a string
Methods
browser_info()
Returns info about browser being used this should work on all server installation
public
static browser_info([null $agent = null ]) : array<string|int, mixed>
Parameters
- $agent : null = null
Return values
array<string|int, mixed> —currency_to_float()
Converts a currency amount to the floating point value
public
static currency_to_float( $amount) : null|string|array<string|int, string>
Parameters
Return values
null|string|array<string|int, string> —getOrigReferrer()
returns original referrer url from ticket
public
static getOrigReferrer([null $ticket = null ]) : null
Parameters
- $ticket : null = null
Return values
null —isNumberEqualTo()
function to compare float numbers for equality
public
static isNumberEqualTo( $firstnumber, $secondnumber[, int $precision = 10 ]) : bool
Parameters
Return values
bool —isNumberGreaterThan()
function to compare float numbers for greater than
public
static isNumberGreaterThan( $firstnumber, $secondnumber[, int $precision = 10 ]) : bool
Parameters
Return values
bool —isNumberGreaterThanOrEqualTo()
function to compare float numbers for greater than or equality
public
static isNumberGreaterThanOrEqualTo( $firstnumber, $secondnumber[, int $precision = 10 ]) : bool
Parameters
Return values
bool —isNumberLessThan()
function to compare float numbers for less than
public
static isNumberLessThan( $firstnumber, $secondnumber[, int $precision = 10 ]) : bool
Parameters
Return values
bool —isNumberLessThanOrEqualTo()
function to compare float numbers for less than or equality
public
static isNumberLessThanOrEqualTo( $firstnumber, $secondnumber[, int $precision = 10 ]) : bool
Parameters
Return values
bool —isReallyWritable()
isReallyWritable is an alternate implementation of is_writable that should work on a windows platform as well as Linux.
public
static isReallyWritable( $file) : bool
Parameters
Return values
bool —right()
function to return the right side of a string
public
static right( $string, $chars) : string