From 2f66ee3b7420de94b640ea528778005571dbf5a5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Jan 2015 16:37:20 -0500 Subject: Views -AR Classes Update Documentation 50% --- demos/quickstart/protected/controls/TopicList.tpl | 1 + .../quickstart/protected/controls/de/TopicList.tpl | 1 + .../quickstart/protected/controls/es/TopicList.tpl | 1 + .../quickstart/protected/controls/fr/TopicList.tpl | 1 + .../quickstart/protected/controls/id/TopicList.tpl | 1 + .../quickstart/protected/controls/ja/TopicList.tpl | 1 + .../quickstart/protected/controls/pl/TopicList.tpl | 1 + .../quickstart/protected/controls/zh/TopicList.tpl | 1 + .../protected/pages/Database/ViewsArUpdate.page | 28 ++++++++++++++++++++++ 9 files changed, 36 insertions(+) create mode 100644 demos/quickstart/protected/pages/Database/ViewsArUpdate.page 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 @@
  • Active Record
  • Active Record Scaffold
  • SqlMap Data Mapper
  • +
  • Views - AR Classes Update
  • 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 @@
  • Active Record
  • Active Record Scaffold
  • SqlMap Data Mapper
  • +
  • Ansichten - AR-Klassen-Update
  • 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 @@
  • Active Record
  • Active Record Scaffold
  • SqlMap Data Mapper
  • +
  • Actualización de vistas y clases AR
  • 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 @@
  • Active Record
  • Active Record Scaffold
  • SqlMap Data Mapper
  • +
  • Vues - Mise à jour des classes AR
  • 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 @@
  • Rekaman Aktf
  • Kerangka Rekaman Aktif
  • Pemeta Data SqlMap
  • +
  • Views - AR Kelas Perbarui
  • 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 @@
  • アクティブレコード
  • アクティブレコードScaffold
  • SqlMapデータマッパー
  • +
  • ビュー - ARクラスのアップデート
  • 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 @@
  • Rekord aktywny (Active Record)
  • Szkielet rekordu aktywnego (Scafold)
  • Mapa danych SqlMap
  • +
  • Widoki - Zajęcia AR Aktualizacja
  • 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 @@
  • Active Record
  • Active Record Scaffold
  • SqlMap Data Mapper
  • +
  • 意見 - AR類更新
  • 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 @@ + +

    Views - AR Classes Update

    + +

    + Usually when have Active Records Classes + there are correspondingly the proper views to handle them. +

    + + +$student = AR_Student::finder()->findByPk(1); +$this->tryToUpdateView($student); + + +

    + Also you can do the reverse operation. +

    + + +$student = new AR_Student(); +$this->tryToUpdateAR($student); +$student->save(); + + +
    Info: + When an AR class attribute does not match any of the controls IDs on the view, nothing will happen +
    + +
    \ No newline at end of file -- cgit v1.2.3