Class Util

Description

Provides utility methods to convert variables to a specified type.

Located in /src/Util.php (line 9)


	
			
Method Summary
static boolean toBoolean (mixed $var)
static float toFloat (mixed $var)
static integer toImageType (mixed $var)
static integer toInteger (mixed $var)
static string toString (mixed $var)
static integer toTimestamp (mixed $var)
static mixed toUTF8 (mixed $object)
Methods
static method toBoolean (line 54)

Returns the boolean value of a variable.

  • return: A boolean.
  • access: public
static boolean toBoolean (mixed $var)
  • mixed $var: An object.
static method toFloat (line 42)

Returns the floating-point value of a variable.

  • return: A floating-point number.
  • access: public
static float toFloat (mixed $var)
  • mixed $var: An object.
static method toImageType (line 85)

Returns the image type value of a variable.

  • return: An image type.
  • access: public
static integer toImageType (mixed $var)
  • mixed $var: An object.
static method toInteger (line 30)

Returns the integer value of a variable.

  • return: An integer.
  • access: public
static integer toInteger (mixed $var)
  • mixed $var: An object.
static method toString (line 18)

Returns the string value of a variable.

  • return: A string.
  • access: public
static string toString (mixed $var)
  • mixed $var: An object.
static method toTimestamp (line 73)

Returns the unix timestamp value of a variable.

  • return: A unix timestamp.
  • access: public
static integer toTimestamp (mixed $var)
  • mixed $var: An object.
static method toUTF8 (line 112)

Converts any string or array of strings to UTF8.

  • return: UTF8-string or array.
  • access: public
static mixed toUTF8 (mixed $object)
  • mixed $object: A String or an array.

Documentation generated on Mon, 22 Dec 2008 16:57:52 +0100 by phpDocumentor 1.4.1