Class CFW_Data_Command

Description

データベース実行command

PDOを使うので、このオブジェクトが直接PDO_Statementを作成し実行する

  • author: okada

Located in /Data/Command.php (line 12)


	
			
Method Summary
unknown_type __construct (unknown_type $text, [ $parameters = array()])
unknown_type addParameter (unknown_type $parameter)
unknown_type bindParameters ()
Array executeQuery ()
Array executeQueryAsObject ([ $className = "CFW_Models_Entity"], [ $prefix = ""])
Array executeScalar ()
unknown_type executeUpdate ()
unknown_type getParameters ()
unknown_type setConnection ( &$connection, unknown_type $connection)
Methods
Constructor __construct (line 36)
  • access: public
unknown_type __construct (unknown_type $text, [ $parameters = array()])
  • unknown_type $text
  • $parameters
addParameter (line 60)

パラメータを追加する

  • access: public
unknown_type addParameter (unknown_type $parameter)
  • unknown_type $parameter
bindParameters (line 140)

パラメータをステートメントオブジェクトにバインド

unknown_type bindParameters ()
executeQuery (line 69)

問い合わせを実行してデータの配列を返す。

  • return: 問い合わせ結果の配列(行、列)
  • see: fetchAll
  • access: public
Array executeQuery ()
executeQueryAsObject (line 103)

問い合わせを実行して指定クラス名のオブジェクトの配列を返す。

  • return: 問い合わせ結果の配列(行、列)
  • see: fetchAll
  • access: public
Array executeQueryAsObject ([ $className = "CFW_Models_Entity"], [ $prefix = ""])
  • $className
  • $prefix
executeReader (line 89)

問い合わせを実行してデータリーダーを作る

  • return: 問い合わせ結果の配列(行、列)
  • access: public
CFW_Data_Reader executeReader ()
executeScalar (line 79)

問い合わせを実行してデータの配列を返す。

  • return: 問い合わせ結果の配列(行、列)
  • see: fetchAll
  • access: public
Array executeScalar ()
executeUpdate (line 120)

更新処理を実行する。

  • access: public
unknown_type executeUpdate ()
getParameters (line 52)

パラメータコレクションを取得する。

  • access: public
unknown_type getParameters ()
parametersToArray (line 146)
void parametersToArray ()
setConnection (line 45)

対象の接続を設定する

  • access: public
unknown_type setConnection ( &$connection, unknown_type $connection)
  • unknown_type $connection
  • &$connection

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