diff options
author | Daniel <darthdaniel85@gmail.com> | 2015-01-28 16:37:20 -0500 |
---|---|---|
committer | Daniel <darthdaniel85@gmail.com> | 2015-01-28 16:37:20 -0500 |
commit | 2f66ee3b7420de94b640ea528778005571dbf5a5 (patch) | |
tree | ead4cacbc47c7918a5bf1942f68cbb9aeb154dd4 /demos | |
parent | 68c81d74a593d8e0225078d6982f9b5fe4986d2a (diff) |
Views -AR Classes Update Documentation 50%
Diffstat (limited to 'demos')
9 files changed, 36 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index b8563c50..ed57a4b0 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -81,6 +81,7 @@ <li><a href="?page=Database.ActiveRecord">Active Record</a></li>
<li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li>
<li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">Views - AR Classes Update</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/de/TopicList.tpl b/demos/quickstart/protected/controls/de/TopicList.tpl index 19cebef9..470927da 100755 --- a/demos/quickstart/protected/controls/de/TopicList.tpl +++ b/demos/quickstart/protected/controls/de/TopicList.tpl @@ -81,6 +81,7 @@ <li><a href="?page=Database.ActiveRecord">Active Record</a></li> <li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li> <li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li> + <li><a href="?page=Database.ViewsArUpdate">Ansichten - AR-Klassen-Update</a></li> </ul> </div> diff --git a/demos/quickstart/protected/controls/es/TopicList.tpl b/demos/quickstart/protected/controls/es/TopicList.tpl index b0129826..62451700 100644 --- a/demos/quickstart/protected/controls/es/TopicList.tpl +++ b/demos/quickstart/protected/controls/es/TopicList.tpl @@ -77,6 +77,7 @@ <li><a href="?page=Database.ActiveRecord">Active Record</a></li>
<li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li>
<li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">Actualización de vistas y clases AR</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/fr/TopicList.tpl b/demos/quickstart/protected/controls/fr/TopicList.tpl index f7bd5f5a..c37609ab 100644 --- a/demos/quickstart/protected/controls/fr/TopicList.tpl +++ b/demos/quickstart/protected/controls/fr/TopicList.tpl @@ -76,6 +76,7 @@ <li><a href="?page=Database.ActiveRecord">Active Record</a></li>
<li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li>
<li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">Vues - Mise à jour des classes AR</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/id/TopicList.tpl b/demos/quickstart/protected/controls/id/TopicList.tpl index bedf6c6f..a35db55d 100644 --- a/demos/quickstart/protected/controls/id/TopicList.tpl +++ b/demos/quickstart/protected/controls/id/TopicList.tpl @@ -77,6 +77,7 @@ <li><a href="?page=Database.ActiveRecord">Rekaman Aktf</a></li>
<li><a href="?page=Database.Scaffold">Kerangka Rekaman Aktif</a></li>
<li><a href="?page=Database.SqlMap">Pemeta Data SqlMap</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">Views - AR Kelas Perbarui</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/ja/TopicList.tpl b/demos/quickstart/protected/controls/ja/TopicList.tpl index 456e13c4..f24994e0 100644 --- a/demos/quickstart/protected/controls/ja/TopicList.tpl +++ b/demos/quickstart/protected/controls/ja/TopicList.tpl @@ -77,6 +77,7 @@ <li><a href="?page=Database.ActiveRecord">アクティブレコード</a></li>
<li><a href="?page=Database.Scaffold">アクティブレコードScaffold</a></li>
<li><a href="?page=Database.SqlMap">SqlMapデータマッパー</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">ビュー - ARクラスのアップデート</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/pl/TopicList.tpl b/demos/quickstart/protected/controls/pl/TopicList.tpl index c57cba76..a494d94e 100644 --- a/demos/quickstart/protected/controls/pl/TopicList.tpl +++ b/demos/quickstart/protected/controls/pl/TopicList.tpl @@ -77,6 +77,7 @@ <li><a href="?page=Database.ActiveRecord">Rekord aktywny (Active Record)</a></li>
<li><a href="?page=Database.Scaffold">Szkielet rekordu aktywnego (Scafold)</a></li>
<li><a href="?page=Database.SqlMap">Mapa danych SqlMap</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">Widoki - Zajęcia AR Aktualizacja</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/controls/zh/TopicList.tpl b/demos/quickstart/protected/controls/zh/TopicList.tpl index 160455b4..73e1d5a8 100644 --- a/demos/quickstart/protected/controls/zh/TopicList.tpl +++ b/demos/quickstart/protected/controls/zh/TopicList.tpl @@ -76,6 +76,7 @@ <li><a href="?page=Database.ActiveRecord">Active Record</a></li>
<li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li>
<li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li>
+ <li><a href="?page=Database.ViewsArUpdate">意見 - AR類更新</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/pages/Database/ViewsArUpdate.page b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page new file mode 100644 index 00000000..a2f7ff68 --- /dev/null +++ b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page @@ -0,0 +1,28 @@ +<com:TContent ID="body" > +<h1 id="138046">Views - AR Classes Update</h1> +<com:SinceVersion Version="4.0" /> +<p class="block-content"> + Usually when have <tt>Active Records Classes</tt> + there are correspondingly the proper views to handle them. +</p> + +<com:TTextHighlighter CssClass="source block-content"> +$student = AR_Student::finder()->findByPk(1); +$this->tryToUpdateView($student); +</com:TTextHighlighter> + +<p class="block-content"> + Also you can do the reverse operation. +</p> + +<com:TTextHighlighter CssClass="source block-content"> +$student = new AR_Student(); +$this->tryToUpdateAR($student); +$student->save(); +</com:TTextHighlighter> + +<div class="info"><b class="note">Info:</b> + When an AR class attribute does not match any of the controls IDs on the view, nothing will happen +</div> + +</com:TContent>
\ No newline at end of file |