Class CFW_Util_Util

Description

各種関数

  • author: okada

Located in /Util/Util.php (line 7)


	
			
Method Summary
static Sring arrayToString ($arr $arr, [$delimiter $delimiter = ","], [$quoter $quoter = null])
static String escape ($str $str, [$enc $enc = null])
static String h ($str $str, [$enc $enc = null])
static String jq ($str $str)
static String jsescape ($str $str)
static String jsquote ($str $str)
static String q ($str $str, [$quoteSimbol $quoteSimbol = "'"])
static DateTime toDate ($val $val)
static float toFloat ($val $val)
static int toInteger ($val $val)
static String toString ($val $val)
Methods
static method arrayToString (line 15)

配列をつなげて文字列にする。

  • access: public
static Sring arrayToString ($arr $arr, [$delimiter $delimiter = ","], [$quoter $quoter = null])
  • $arr $arr: 対象の配列
  • $delimiter $delimiter: 分離記号
  • $quoter $quoter: 引用符をつけるための関数
static method escape (line 40)

alias for htmlspecialchars

  • access: public
static String escape ($str $str, [$enc $enc = null])
  • $str $str
  • $enc $enc
static method h (line 50)

Alias for escape

  • access: public
static String h ($str $str, [$enc $enc = null])
  • $str $str
  • $enc $enc
static method jq (line 104)

alias for jsquote

  • access: public
static String jq ($str $str)
  • $str $str
static method jsescape (line 58)

javascript用エスケープ

  • access: public
static String jsescape ($str $str)
  • $str $str
static method jsquote (line 96)

javascript用引用符付き文字列

  • access: public
static String jsquote ($str $str)
  • $str $str
static method q (line 31)

引用符を付ける

  • access: public
static String q ($str $str, [$quoteSimbol $quoteSimbol = "'"])
  • $str $str: 対象文字列
  • $quoteSimbol $quoteSimbol: 引用符
static method toDate (line 139)

日付化

  • access: public
static DateTime toDate ($val $val)
  • $val $val
static method toFloat (line 130)

浮動小数点化

  • access: public
static float toFloat ($val $val)
  • $val $val
static method toInteger (line 121)

整数化

  • access: public
static int toInteger ($val $val)
  • $val $val
static method toString (line 113)

文字列化

  • access: public
static String toString ($val $val)
  • $val $val

Documentation generated on Fri, 25 Dec 2009 22:46:26 +0900 by phpDocumentor 1.4.3