Class Ethna_DB_Creole

Description

Ethna用DB抽象クラス

EthnaのフレームワークでDBオブジェクトを扱うための抽象クラス (のつもり...あぁすばらしきPHP 4)

Located in /class/DB/Ethna_DB_Creole.php (line 23)

Ethna_DB
   |
   --Ethna_DB_Creole
Method Summary
 Ethna_DB_Creole Ethna_DB_Creole (object Ethna_Controller &$controller, string $dsn, bool $persistent)
 mixed begin ()
 mixed commit ()
 mixed connect ()
 void disconnect ()
 bool isValid ()
 Object prepareStatement ( $sql)
 mixed rollback ()
Methods
Constructor Ethna_DB_Creole (line 46)

コンストラクタ

  • access: public
Ethna_DB_Creole Ethna_DB_Creole (object Ethna_Controller &$controller, string $dsn, bool $persistent)
  • object Ethna_Controller &$controller: コントローラオブジェクト
  • string $dsn: DSN
  • bool $persistent: 持続接続設定
begin (line 95)

DBトランザクションを開始する

  • return: 0:正常終了 Ethna_Error:エラー
  • access: public
mixed begin ()

Redefinition of:
Ethna_DB::begin()
DBトランザクションを開始する
commit (line 118)

DBトランザクションを終了する

  • return: 0:正常終了 Ethna_Error:エラー
  • access: public
mixed commit ()

Redefinition of:
Ethna_DB::commit()
DBトランザクションを終了する
connect (line 57)

DBに接続する

  • return: 0:正常終了 Ethna_Error:エラー
  • access: public
mixed connect ()

Redefinition of:
Ethna_DB::connect()
DBに接続する
disconnect (line 68)

DB接続を切断する

  • access: public
void disconnect ()

Redefinition of:
Ethna_DB::disconnect()
DB接続を切断する
isValid (line 80)

DB接続状態を返す

  • return: true:正常(接続済み) false:エラー/未接続
  • access: public
bool isValid ()

Redefinition of:
Ethna_DB::isValid()
DB接続状態を返す
prepareStatement (line 131)

PrepareStatement

  • access: public
Object prepareStatement ( $sql)
  • $sql
rollback (line 106)

DBトランザクションを中断する

  • return: 0:正常終了 Ethna_Error:エラー
  • access: public
mixed rollback ()

Redefinition of:
Ethna_DB::rollback()
DBトランザクションを中断する

Inherited Methods

Inherited From Ethna_DB

 Ethna_DB::Ethna_DB()
 Ethna_DB::begin()
 Ethna_DB::commit()
 Ethna_DB::connect()
 Ethna_DB::disconnect()
 Ethna_DB::getDSN()
 Ethna_DB::getMetaData()
 Ethna_DB::isValid()
 Ethna_DB::rollback()

Documentation generated on Fri, 11 Nov 2011 03:59:38 +0900 by phpDocumentor 1.4.3