Class we_util_Strings

Description

Utility class for string manipulation and creation

Located in /util/Strings.php (line 24)


	
			
Method Summary
static string createUniqueId ([integer $length = 32])
static array makeArrayFromCSV (string $csv)
static string makeCSVFromArray (string $arr, [string $prePostKomma = false], [string $sep = ","])
static string quoteForJSString (string $text, [boolean $quoteForSingle = true])
static string shortenPath (string $path, integer $len)
Methods
static method createUniqueId (line 33)

Returns an unique ID

static string createUniqueId ([integer $length = 32])
  • integer $length: length of generated ID
static method makeArrayFromCSV (line 74)

Returns an array of cvs values

static array makeArrayFromCSV (string $csv)
  • string $csv
static method makeCSVFromArray (line 46)

Returns cvs of array values

static string makeCSVFromArray (string $arr, [string $prePostKomma = false], [string $sep = ","])
  • string $arr
  • string $prePostKomma
  • string $sep
static method quoteForJSString (line 103)

Returns a quoted string

static string quoteForJSString (string $text, [boolean $quoteForSingle = true])
  • string $text
  • boolean $quoteForSingle
static method shortenPath (line 119)

Returns a shortened string

static string shortenPath (string $path, integer $len)
  • string $path
  • integer $len

Documentation generated on Mon, 01 Sep 2008 11:35:43 +0200 by phpDocumentor 1.4.0