drivers
データベースのドライバーのクラスと、基本的なデータ構造のアクセスのためのクラスを含んでいます。
また、.htaccessファイルでディレクトリ内のファイルを直接アクセスできないように、Apache用のアクセス制限を設定しています。
データベースのドライバーのクラス
データベースのドライバーの名前をnameとすると、以下の3つのクラスを定義しています。
DB_name
Databaseクラスのサブクラスで、以下のメソッドを定義しています。
connect()disconnect()get_error()list_fields($strTable)set_database($strDatabase)begin_transaction()commit_transaction()rollback_transaction()lock_tables($arrTables)unlock_tables()
DB_name_Statement
Database_Statementクラスのサブクラスで、以下のメソッドを定義しています。
prepare_query($strQuery)string_escape($strString)limit_query($intRows, $intOffset)execute_query()get_error()affected_rows()insert_id()explain_query()
DB_name_Result
Database_Resultクラスのサブクラスで、以下のメソッドを定義しています。
fetch_row()fetch_assoc()num_rows()num_fields()fetch_field($intOffset)free()
データベースのドライバーのファイル
以下のデータベースのドライバーのファイルがあります。
| DB_Mssql.php | MSSQL用のデータベースのドライバー |
| DB_Mysql.php | MySQL用のPHPのmysqlを使用するデータベースのドライバー |
| DB_Mysqli.php | MySQL用のPHPのmysqliを使用するデータベースのドライバー |
| DB_Oracle.php | Oracle用のデータベースのドライバー |
| DB_Postgresql.php | PostgreSQL用ののデータベースのドライバー |
| DB_Sybase.php | Sybase用のデータベースのドライバー |
データ構造アクセスのファイル
DC_File.php
サイトのローカルな設定のファイルを編集するメソッドを提供するDC_Fileクラスを定義しています。DC_FileクラスはDataContainerクラスのサブクラスで、以下のメソッドを定義しています。
create()cut()copy()move()edit()save($varValue)getPalette()
DC_Folder.php
ファイルシステムを変更するメソッドを提供するDC_Folderクラスを定義しています。DC_FolderクラスはDataContainerクラスのサブクラスで、以下のメソッドを定義しています。
showAll()show()create()cut($blnDoNotRedirect=false)cutAll()copy($source='', $destination='')copyAll()delete($source='')deleteAll()undo()move($blnIsAjax=false)edit()editAll()source()protect()save($varValue)getPalette()ajaxTreeView($strFolder, $level)generateTree($path, $intMargin, $mount=false, $blnProtected=false, $arrClipboard=false)isMounted($strFolder)isValid($strFile)getMD5Folders($strPath)
DC_Table.php
データベースを変更するメソッドを提供するDC_Tableクラスです。DC_TableクラスはDataContainerクラスのサブクラスで、以下のメソッドを定義しています。
showAll()show()create($set=array())cut($blnDoNotRedirect=false)cutAll()copy($blnDoNotRedirect=false)copyChilds($table, $insertID, $id, $parentId)copyAll()getNewPosition($mode, $pid=null, $insertInto=false)delete($blnDoNotRedirect=false)deleteAll()deleteChilds($table, $id, &$delete)undo()move()edit($intID=false, $ajaxId=false)editAll($intId=false, $ajaxId=false)overrideAll()save($varValue)getPalette()reviseTable()treeView()ajaxTreeView($id, $level)generateTree($table, $id, $arrPrevNext, $blnHasSorting, $intMargin=0, $arrClipboard=false, $blnCircularReference=false, $protectedPage=false)parentView()listView()panel()searchMenu()sortMenu()limitMenu($blnOptional=false)filterMenu()formatCurrentValue($field, $value, $mode)formatGroupHeader($field, $value, $mode, $row)