[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/scripts/ -> helpers.js (summary)

Differrent helper functions

Author: Ilya Lebedev
License: LGPL
File Size: 146 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  isUndefined()
  isFunction()
  isString()
  isNumber()
  isNumeric()
  isArray()
  isRegExp()
  isBoolean()
  isScalar()
  isEmpty()
  hasFlash()

Functions
Functions that are not part of a class:

isUndefined(prop )   X-Ref
Checks if property is undefined

param: {Object} prop value to check
return: {Boolean} true if matched

isFunction(prop )   X-Ref
Checks if property is function

param: {Object} prop value to check
return: {Boolean} true if matched

isString(prop )   X-Ref
Checks if property is string

param: {Object} prop value to check
return: {Boolean} true if matched

isNumber(prop )   X-Ref
Checks if property is number

param: {Object} prop value to check
return: {Boolean} true if matched

isNumeric(prop )   X-Ref
Checks if property is the calculable number

param: {Object} prop value to check
return: {Boolean} true if matched

isArray(prop )   X-Ref
Checks if property is array

param: {Object} prop value to check
return: {Boolean} true if matched

isRegExp(prop )   X-Ref
Checks if property is regexp

param: {Object} prop value to check
return: {Boolean} true if matched

isBoolean(prop )   X-Ref
Checks if property is a boolean value

param: {Object} prop value to check
return: {Boolean} true if matched

isScalar(prop )   X-Ref
Checks if property is a scalar value (value that could be used as the hash key)

param: {Object} prop value to check
return: {Boolean} true if matched

isEmpty(prop )   X-Ref
Checks if property is empty

param: {Object} prop value to check
return: {Boolean} true if matched

hasFlash(version)   X-Ref
Very simplistic Flash plugin check, probably works for Flash 8 and higher only




Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7