v5:dictionary:structure:sample_usage
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
v5:dictionary:structure:complex_sample [2016/04/09 21:36] – created mnewnham | v5:dictionary:structure:sample_usage [2016/04/09 21:46] (current) – mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Sample Usage ====== | ====== Sample Usage ====== | ||
+ | This page shows the usage of the metaObjectStructure in various situations. | ||
+ | ------------------------------------ | ||
===== Complex Example ===== | ===== Complex Example ===== | ||
- | he following complex example shows the additional functionality of updating indexes, as well as chaining methods | + | The following complex example shows the additional functionality of updating indexes, as well as chaining methods |
<code php> | <code php> | ||
$dict = NewDataDictionary($db); | $dict = NewDataDictionary($db); | ||
Line 8: | Line 10: | ||
$t-> | $t-> | ||
$t-> | $t-> | ||
- | $t-> | + | $t-> |
+ | -> | ||
$c = $t-> | $c = $t-> | ||
Line 16: | Line 19: | ||
$ii = $i-> | $ii = $i-> | ||
- | $t-> | + | $t-> |
+ | | ||
+ | | ||
- | $t-> | + | $t-> |
+ | -> | ||
+ | -> | ||
+ | -> | ||
$t-> | $t-> | ||
- | $t-> | + | $t-> |
+ | | ||
+ | | ||
$t-> | $t-> | ||
- | $t-> | + | $t-> |
+ | | ||
- | $t-> | + | $t-> |
+ | | ||
- | $t-> | + | $t-> |
- | $t-> | + | |
+ | | ||
+ | $t-> | ||
+ | | ||
$sql = $dict-> | $sql = $dict-> | ||
Line 110: | Line 125: | ||
$t = new metaObjectStructure($dict,' | $t = new metaObjectStructure($dict,' | ||
$sqlarray = $dict-> | $sqlarray = $dict-> | ||
+ | </ | ||
+ | |||
+ | ==== renameTableSql ==== | ||
+ | === Usage === | ||
+ | <code php> | ||
+ | $t = new metaObjectStructure($dict,' | ||
+ | $t-> | ||
+ | $sqlarray = $dict-> | ||
</ | </ | ||
v5/dictionary/structure/sample_usage.1460230587.txt.gz · Last modified: 2017/04/21 11:29 (external edit)