summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Tutorial
diff options
context:
space:
mode:
authorwei <>2007-02-27 23:48:49 +0000
committerwei <>2007-02-27 23:48:49 +0000
commit7a9626af3bef5c712901597065745d9572c3f097 (patch)
treeb63b6c5ef530004ac40d57c2b58ddca773bea05d /demos/quickstart/protected/pages/Tutorial
parent4c86659bc90d9134b0f901572c5417aa7d9cec18 (diff)
BC: Deprecate TActiveRecord::getRecordFinder() in favour of TActiveRecord::finder().
Diffstat (limited to 'demos/quickstart/protected/pages/Tutorial')
-rw-r--r--demos/quickstart/protected/pages/Tutorial/AjaxChat.page8
-rw-r--r--demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page8
2 files changed, 8 insertions, 8 deletions
diff --git a/demos/quickstart/protected/pages/Tutorial/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
index 730ebab6..7d978a12 100644
--- a/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
+++ b/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
@@ -173,9 +173,9 @@ class ChatUserRecord extends TActiveRecord
public static $_tablename='chat_users';
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return parent::getRecordFinder('ChatUserRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>
@@ -522,9 +522,9 @@ class ChatBufferRecord extends TActiveRecord
$this->_created_on = $value;
}
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return parent::getRecordFinder('ChatBufferRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>
diff --git a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
index fc1997c8..7bc36d5f 100644
--- a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
+++ b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
@@ -173,9 +173,9 @@ class ChatUserRecord extends TActiveRecord
public static $_tablename='chat_users';
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return parent::getRecordFinder('ChatUserRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>
@@ -522,9 +522,9 @@ class ChatBufferRecord extends TActiveRecord
$this->_created_on = $value;
}
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return parent::getRecordFinder('ChatBufferRecord');
+ return parent::finder($className);
}
}
</com:TTextHighlighter>