Zend/Db/TableGatewayの変更点
- 追加された行はこの色です。
- 削除された行はこの色です。
- 移動:バックアップ
- バージョン:(Rev:dOu4l734QH)2014-04-09 14:08:11
- 直前のバージョン:(Rev:VU0ls65cc9)2014-04-09 13:59:33
Old | New | 差分 | |
---|---|---|---|
16 | 16 | ||
17 | 17 | #sh(php){$tgw = new TableGateway("table", $adapter, null, $resultSetPrototype);} | |
18 | 18 | ||
19 | - | *select [#s0bdKN7] | |
19 | + | *select [#s0bdKN7] | |
20 | 20 | :引数|Where|\Closure|string|array $where | |
21 | 21 | ||
22 | 22 | [[Zend/Db/Sql>Zend/Db/Sql#8hdU3yM]]クラスを利用される。 | |
29 | 29 | $select->order('name ASC')->limit(2); | |
30 | 30 | }); | |
31 | 31 | }} | |
32 | + | ||
33 | + | * insert [#sm3VrxN] | |
34 | + | :引数|array $set | |
35 | + | ||
36 | + | #sh(php){$userTable->insert(array("name"=>"tanaka", "age"=>"25"));} | |
37 | + | ||
38 | + | * update [#BeE85Dl] | |
39 | + | :引数|array $set | |
40 | + | string|array|closure $where | |
41 | + | ||
42 | + | #sh(php){$userTable->update(array("name"=>"tanaka"), array("age"=>"30"));} | |
43 | + | ||
44 | + | * delete [#HAeAmma] | |
45 | + | :引数|Where|\Closure|string|array $where | |
46 | + | ||
47 | + | #sh(php){$userTable->update(array("name"=>"tanaka"));} |