WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKMath Class Reference
Inheritance diagram for WPDKMath:
WPDKObject

Static Public Member Functions

static rModulus ($a, $n)
 Do a modules. More...
 
static isPercentage ($value)
 
static isInfinity ($value)
 Infinity. More...
 
- Static Public Member Functions inherited from WPDKObject
static __delta ($last_version, $old_version)
 Object delta compare for combine. More...
 
static delta ($last_version, $old_version)
 
static __dump ($var, $monitor=false)
 Dump a variable. More...
 

Data Fields

const INFINITY = 'infinity'
 Infinity constant. More...
 
 $__version = '1.0.3'
 Version. More...
 
- Data Fields inherited from WPDKObject
 $__version = '1.0.0'
 The version number assigned to the class. More...
 

Additional Inherited Members

- Public Member Functions inherited from WPDKObject
 __className ()
 Returns the class object. More...
 
 __parentClass ()
 Returns the class object for the receiver’s superclass. More...
 
 __isClass ($class)
 Brief. More...
 
 __isSubclassOfClass ($class)
 Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More...
 

Detailed Description

Math utility and fix

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2014-01-08
Version
1.0.3

Definition at line 12 of file wpdk-math.php.

Member Function Documentation

static isInfinity (   $value)
static

Infinity.

Check if infinity

Since
1.2.0
Parameters
float | string$valueCheck value
Returns
bool true if $value is equal to INF (php) or WPDKMath::INFINITY

Definition at line 70 of file wpdk-math.php.

static isPercentage (   $value)
static

Return true if the string $value in input params over with %

Parameters
string$valueString value to check
Returns
bool

Definition at line 54 of file wpdk-math.php.

static rModulus (   $a,
  $n 
)
static

Do a modules.

Mimic the math function modules like Ruby, Python & TLC

Author
=stid= s.fur.nosp@m.iosi.nosp@m.@wpxt.nosp@m.re.m.nosp@m.e
Parameters
number$aNumber a
number$nModule b of a
Returns
integer

Definition at line 42 of file wpdk-math.php.

Field Documentation

string $__version = '1.0.3'

Version.

Override version

Definition at line 28 of file wpdk-math.php.

const INFINITY = 'infinity'

Infinity constant.

Infinity const for set a value as never ending

Definition at line 19 of file wpdk-math.php.


The documentation for this class was generated from the following file: