Home
News
Forum
Wiki
Blog
Contents
Gallery
Movies
Downloads
About NSL
If you want to see English page, please click "English" Button at Left.
[
タイトル一覧
|
ページ一覧
|
新規
|
単語検索
|
最終更新
|
ヘルプ
]
Moodle/Programming/DB
をテンプレートにして作成
[
トップ
]
[ ]
開始行:
** DataBase API
- lib/dml/moodle_database.php
- $strictness: MUST_EXIST, IGNORE_MISSING
#br
*** API
#br
**** $DB->count_records
$count = $DB->count_records('autoattend_sessions', array...
#br
**** $DB->insert_record
- record_id insert_record($table, $dataobject, $returnid=...
$apply_id = $DB->insert_record('apply', $apply);
**** $DB->update_record
- bool update_record($table, $dataobject, $bulk=false);
update_record('apply', $apply);
**** $DB->delete_records
- bool delete_records($table, array $conditions=null)
$ret = $DB->delete_records('event', array('modulename'=>...
**** $DB->get_record
- object get_record($table, array $conditions, $fields='*...
$item = $DB->get_record('apply_item', array('id'=>$apply...
$name = $item->name;
**** $DB->get_records
- array(object) get_records($table, array $conditions=nul...
$params = array('apply_id'=>$item->apply_id);
$items = $DB->get_records('apply_item', $params, 'positi...
foreach ($items as $item) {
$name = $item->name;
......
**** $DB->get_records_select
- array(object) get_records_select($table, $select, array...
- $select の ''?'' に 配列 $params の要素が対応(並び順)
- $select 中の '':変数名'' に $params の各要素が対応
- name が結果の配列のキーになる(重複があるとワーニング)
$templates = $DB->get_records_select('apply_template', '...
**** $DB->get_records_sql
- array(object) get_records_sql($sql, array $params=null,...
- $sql の ''?'' に 配列 $params の要素が対応(並び順)
- $sql 中の '':変数名'' に $params の各要素が対応
$where = 'WHERE as.id=av.submit_id AND av.version=0 AND ...
$sql = 'SELECT MAX(ai.position) FROM {apply_submit} as...
$params = array();
$params['apply_id'] = $apply_id;
$lastpos = $DB->get_field_sql($sql, $params);
#br
**** $DB->execute
- array(object) execute($sql, array $params=null)
- $sql の ''?'' に 配列 $params の要素が対応(並び順)
- $sql 中の '':変数名'' に $params の各要素が対応
#br
終了行:
** DataBase API
- lib/dml/moodle_database.php
- $strictness: MUST_EXIST, IGNORE_MISSING
#br
*** API
#br
**** $DB->count_records
$count = $DB->count_records('autoattend_sessions', array...
#br
**** $DB->insert_record
- record_id insert_record($table, $dataobject, $returnid=...
$apply_id = $DB->insert_record('apply', $apply);
**** $DB->update_record
- bool update_record($table, $dataobject, $bulk=false);
update_record('apply', $apply);
**** $DB->delete_records
- bool delete_records($table, array $conditions=null)
$ret = $DB->delete_records('event', array('modulename'=>...
**** $DB->get_record
- object get_record($table, array $conditions, $fields='*...
$item = $DB->get_record('apply_item', array('id'=>$apply...
$name = $item->name;
**** $DB->get_records
- array(object) get_records($table, array $conditions=nul...
$params = array('apply_id'=>$item->apply_id);
$items = $DB->get_records('apply_item', $params, 'positi...
foreach ($items as $item) {
$name = $item->name;
......
**** $DB->get_records_select
- array(object) get_records_select($table, $select, array...
- $select の ''?'' に 配列 $params の要素が対応(並び順)
- $select 中の '':変数名'' に $params の各要素が対応
- name が結果の配列のキーになる(重複があるとワーニング)
$templates = $DB->get_records_select('apply_template', '...
**** $DB->get_records_sql
- array(object) get_records_sql($sql, array $params=null,...
- $sql の ''?'' に 配列 $params の要素が対応(並び順)
- $sql 中の '':変数名'' に $params の各要素が対応
$where = 'WHERE as.id=av.submit_id AND av.version=0 AND ...
$sql = 'SELECT MAX(ai.position) FROM {apply_submit} as...
$params = array();
$params['apply_id'] = $apply_id;
$lastpos = $DB->get_field_sql($sql, $params);
#br
**** $DB->execute
- array(object) execute($sql, array $params=null)
- $sql の ''?'' に 配列 $params の要素が対応(並び順)
- $sql 中の '':変数名'' に $params の各要素が対応
#br
ページ名:
サイト内 検索
高度な検索
ログイン
ユーザー名:
パスワード:
パスワード紛失
新規登録
サブ メニュー
新着情報
Books
リンク
サイトマップ
e-Learning
TUIS 認証局証明書
ミニカレンダー
2025年 2月
日
月
火
水
木
金
土
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<今日>
オンライン状況
82 人のユーザが現在オンラインです。 (4 人のユーザが xpwiki を参照しています。)
登録ユーザ: 0
ゲスト: 82
もっと...
アクセスカウンタ
今日 :
昨日 :
総計 :
Powered by XOOPS Cube 2.1© 2001-2006
XOOPS Cube Project
Design by
XoopsDesign.com