Exponent v2.7.2

expUtil
in package

This is the class expUtil

Tags
subpackage

Subsystems

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
$amount :
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
$firstnumber :
$secondnumber :
$precision : int = 10
Return values
bool

isNumberGreaterThan()

function to compare float numbers for greater than

public static isNumberGreaterThan( $firstnumber,  $secondnumber[, int $precision = 10 ]) : bool
Parameters
$firstnumber :
$secondnumber :
$precision : int = 10
Return values
bool

isNumberGreaterThanOrEqualTo()

function to compare float numbers for greater than or equality

public static isNumberGreaterThanOrEqualTo( $firstnumber,  $secondnumber[, int $precision = 10 ]) : bool
Parameters
$firstnumber :
$secondnumber :
$precision : int = 10
Return values
bool

isNumberLessThan()

function to compare float numbers for less than

public static isNumberLessThan( $firstnumber,  $secondnumber[, int $precision = 10 ]) : bool
Parameters
$firstnumber :
$secondnumber :
$precision : int = 10
Return values
bool

isNumberLessThanOrEqualTo()

function to compare float numbers for less than or equality

public static isNumberLessThanOrEqualTo( $firstnumber,  $secondnumber[, int $precision = 10 ]) : bool
Parameters
$firstnumber :
$secondnumber :
$precision : int = 10
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
$file :
Return values
bool

right()

function to return the right side of a string

public static right( $string,  $chars) : string
Parameters
$string :
$chars :
Return values
string

Search results