EC-CUBE
Public メソッド
クラス MDB2_Driver_Function_Common
MDB2_Driver_Function_Commonに対する継承グラフ
Inheritance graph
[凡例]
MDB2_Driver_Function_Commonのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

executeStoredProc ($name, $params=null, $types=null, $result_class=true, $result_wrap_class=false)
 functionTable ()
 now ($type= 'timestamp')
 unixtimestamp ($expression)
 substring ($value, $position=1, $length=null)
 replace ($str, $from_str, $to_str)
 concat ($value1, $value2)
 random ()
 lower ($expression)
 upper ($expression)
 length ($expression)
 guid ()

関数

concat ( value1,
value2 
)

Returns string to concatenate two or more string parameters

引数:
string$value1
string$value2
string$values,...
戻り値:
string to concatenate two strings public

MDB2_Driver_Function_mysqlで再定義されています。

& executeStoredProc ( name,
params = null,
types = null,
result_class = true,
result_wrap_class = false 
)

Execute a stored procedure and return any results

引数:
string$namestring that identifies the function to execute
mixed$paramsarray that contains the paramaters to pass the stored proc
mixed$typesarray that contains the types of the columns in the result set
mixed$result_classstring which specifies which result class to use
mixed$result_wrap_classstring which specifies which class to wrap results in
戻り値:
mixed a result handle or MDB2_OK on success, a MDB2 error on failure public

MDB2_Driver_Function_mysql, と MDB2_Driver_Function_pgsqlで再定義されています。

return string for internal table used when calling only a function

戻り値:
string for internal table used when calling only a function public
guid ( )

Returns global unique identifier

戻り値:
string to get global unique identifier public

MDB2_Driver_Function_mysqlで再定義されています。

length ( expression)

return string to call a function to get the length of a string expression

引数:
string$expression
戻り値:
return string to get the string expression length public
lower ( expression)

return string to call a function to lower the case of an expression

引数:
string$expression
戻り値:
return string to lower case of an expression public
now ( type = 'timestamp')

Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time:

  • CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
  • CURRENT_DATE (date, DATE type)
  • CURRENT_TIME (time, TIME type)
引数:
string$type'timestamp' | 'time' | 'date'
戻り値:
string to call a variable with the current timestamp public
random ( )

return string to call a function to get random value inside an SQL statement

戻り値:
return string to generate float between 0 and 1 public

MDB2_Driver_Function_pgsqlで再定義されています。

replace ( str,
from_str,
to_str 
)

return string to call a function to get replace inside an SQL statement.

戻り値:
string to call a function to get a replace public
substring ( value,
position = 1,
length = null 
)

return string to call a function to get a substring inside an SQL statement

戻り値:
string to call a function to get a substring public
unixtimestamp ( expression)

return string to call a function to get the unix timestamp from a iso timestamp

引数:
string$expression
戻り値:
string to call a variable with the timestamp public

MDB2_Driver_Function_mysql, と MDB2_Driver_Function_pgsqlで再定義されています。

upper ( expression)

return string to call a function to upper the case of an expression

引数:
string$expression
戻り値:
return string to upper case of an expression public

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数