Class Mutil

Description

Mutil - M utilities

Located in /Mutil.class.php (line 14)


	
			
Method Summary
static void arrayColumn ( $rows,  $fname)
static void arrayIndex ( $a,  $v)
static void arraySum ( $a, [ $fname = null])
static void uploadedFileContent ([ $varName = "file"])
static void uploadedFileInfo ([ $varName = "file"])
array array_truncate (array $a, int $n)
void curl ( $url)
void extractGetValue ( $name,  $url)
void islower ( $s)
void isupper ( $s)
void js (string $s)
void jsStatus (string $s)
string jsStr (string $str)
void jsTitle (string $s)
array Mfile (path $f)
string moneyFmt (float $v, [string $currencyPrefix = '$'])
void selectList ( $rows,  $valName, [ $keyName = "id"])
Methods
static method arrayColumn (line 129)

select one column from an array,

like From Mmodel->getRows() to Mmodel-> getStrings()

  • access: public
static void arrayColumn ( $rows,  $fname)
  • $rows
  • $fname
static method arrayIndex (line 118)

like in_array but return the key

  • access: public
static void arrayIndex ( $a,  $v)
  • $a
  • $v
static method arraySum (line 139)
  • access: public
static void arraySum ( $a, [ $fname = null])
  • $a
  • $fname
static method uploadedFileContent (line 193)
  • access: public
static void uploadedFileContent ([ $varName = "file"])
  • $varName
static method uploadedFileInfo (line 160)
  • access: public
static void uploadedFileInfo ([ $varName = "file"])
  • $varName
array_truncate (line 106)

cut an array to size

  • access: public
array array_truncate (array $a, int $n)
  • array $a
  • int $n
curl (line 247)
  • access: public
void curl ( $url)
  • $url
extractGetValue (line 226)
  • access: public
void extractGetValue ( $name,  $url)
  • $name
  • $url
islower (line 243)
  • access: public
void islower ( $s)
  • $s
isupper (line 239)
  • access: public
void isupper ( $s)
  • $s
js (line 73)

execute javascript by echoing it wrapped in html and flushing output buffers for immeadiate execution

  • access: public
void js (string $s)
  • string $s
jsStatus (line 94)

set status line using javascript

  • access: public
void jsStatus (string $s)
  • string $s
jsStr (line 55)

escape quotes for javascript

  • access: public
string jsStr (string $str)
  • string $str
jsTitle (line 84)

set title of page using javascript

  • access: public
void jsTitle (string $s)
  • string $s
Mfile (line 22)

like file() but without the newlines at the end of each line

  • access: public
array Mfile (path $f)
  • path $f: to file
moneyFmt (line 38)

format a money value

  • access: public
string moneyFmt (float $v, [string $currencyPrefix = '$'])
  • float $v
  • string $currencyPrefix
selectList (line 148)
  • access: public
void selectList ( $rows,  $valName, [ $keyName = "id"])
  • $rows
  • $valName
  • $keyName

Documentation generated on Sat, 03 Dec 2011 03:05:47 +0200 by phpDocumentor 1.4.3