このWikiに書かれた情報は、Risoluto1.x系に関するものです。 Risoluto1.x系は開発が終了しており、現在Risoluto2.x系の開発が進められています。
risoluto (1.3.1) | 2011-09-27 15:41 |
risoluto-upgrade (1.3.0 to 1.3.1) | 2011-10-24 15:51 |
simpleblog (1.4.0) | 2011-10-19 14:50 |
simpleblog-upgrade (1.2.0 to 1.3.0) | 2011-07-21 23:13 |
simplepage (1.3.0) | 2011-10-19 14:45 |
simplepage-upgrade (1.1.0 to 1.2.0) | 2011-07-21 23:15 |
It is a wrapper class of PEAR::MDB2. It enables various operations toward DB. It is not only just a wrapper method, but also has methods to ease processes related to DB and often used for DB processing.
Scope | private(static) |
Type | object |
Purpose | It keeps the instance itself for singleton pattern. |
Scope | private(static) |
Type | object |
Purpose | Keeping information of MDB2_Driver_Common. |
Scope | private |
Parameter | N/A |
Return value | N/A |
Purpose | Constructor for this present class (prosesses nothing). |
Scope | private |
Parameter | N/A |
Return value | N/A |
Type of Return value | N/A |
Purpose | Clone method of this present class (prosesses nothing). |
Scope | public(static) |
Parameter | N/A |
Return value | N/A |
Type of Return value | N/A |
Purpose | Creates and returns this present instance with singleton pattern. |
Scope | public |
Parameter | string $dsnid DSN |
Return value | Result for execution of function (true: normal end / false: abnormal end) |
Type of Return value | boolean |
Purpose | Connect to DB with using DNS given as a parameter. |
Scope | public |
Parameter | N/A |
Return value | Result for execution of function (true: normal end / false: abnormal end) |
Type of Return value | boolean |
Purpose | Close connection to DB. |
Scope | public |
Parameter | N/A |
Return value | Result for execution of function (true: normal end / false: abnormal end) |
Type of Return value | boolean |
Purpose | Commits transaction. |
Scope | public |
Parameter | N/A |
Return value | Result for execution of function (true: normal end / false: abnormal end) |
Type of Return value | boolean |
Purpose | Rolls back transaction. |
Scope | public |
Parameter | N/A |
Return value|Result for execution of function (true: normal end / false: abnormal end) | |
Type of Return value | boolean |
Purpose | Starts transaction. |
Scope | public |
Parameter | N/A |
Return value | always true |
Type of Return value | boolean |
Purpose | Sets up options of MDB2. Setting values are hard-coded, and it's automatically called when connection by dbConnect() succeeds. |
Scope | public |
Parameter | object $obj_err MDB:ERROR object (can be omitted) |
Return value | Acquired error message |
Type of Return value | string |
Purpose | Acquires error messages from MDB::ERROR in case it's assigned, if not, acquires from class variable ($obj_db). |
Scope | public |
Parameter | string $query SQL query to execute ('?' in query is a place holder)/Arrayed SQL to store a replacing value of string $param place holder |
Return value | Result of query execution (for error happens, DB:ERROR object) |
Type of Return value | array |
Purpose | Executes query assigned by Parameter, then acquires result as array. |
And an example of aquired result is as follows:
Scope | public |
Parameter | string $param SQL query to execute ('?' in query is a place holder)/Arrayed SQL to store a replacing value of string $param place holder |
Return value | Result of query execution (for error happens, DB:ERROR object) |
Type of Return value | array |
Purpose | Executes query assigned by Parameter, then acquires result as array. |
And the acquisition result is as follows:
Scope | public |
Parameter | string $param SQL query to execute ('?' in query is a place holder)/Arrayed SQL to store a replacing value of string $param place holder |
Return value | Result of query execution (for error happens, DB:ERROR object) |
Type of Return value | mixed |
Purpose | Executes query assigned by Parameter. Mainly used to publish SQL except for SELECT such as INSERT/UPDATE/DELETE. |
Scope | public |
Parameter | string $path File includes SQL to execute |
Return value | Result of execution (true: all executed normally/false: some or all failed) |
Type of Return value | boolean |
Purpose | Executes SQL in the file assigned by Parameter. Each SQL in the file should be delimitted by ';', though line feed or space can be written freely. |
[ページ情報]
更新日時: 2010-04-16 16:35:21, 更新者: onionchivecat
[ライセンス]
クリエイティブ・コモンズ 2.1 表示-継承
[権限]
表示:無制限, 編集:メンバー, 削除/設定:メンバー