summaryrefslogtreecommitdiff
path: root/demos/chat/protected/App_Code
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/chat/protected/App_Code
parent4c86659bc90d9134b0f901572c5417aa7d9cec18 (diff)
BC: Deprecate TActiveRecord::getRecordFinder() in favour of TActiveRecord::finder().
Diffstat (limited to 'demos/chat/protected/App_Code')
-rw-r--r--demos/chat/protected/App_Code/ChatBufferRecord.php4
-rw-r--r--demos/chat/protected/App_Code/ChatUserRecord.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/demos/chat/protected/App_Code/ChatBufferRecord.php b/demos/chat/protected/App_Code/ChatBufferRecord.php
index cf3c651f..03f94704 100644
--- a/demos/chat/protected/App_Code/ChatBufferRecord.php
+++ b/demos/chat/protected/App_Code/ChatBufferRecord.php
@@ -22,9 +22,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);
}
public function saveMessage()
diff --git a/demos/chat/protected/App_Code/ChatUserRecord.php b/demos/chat/protected/App_Code/ChatUserRecord.php
index 9bfb11cd..e5ebc761 100644
--- a/demos/chat/protected/App_Code/ChatUserRecord.php
+++ b/demos/chat/protected/App_Code/ChatUserRecord.php
@@ -19,9 +19,9 @@ class ChatUserRecord extends TActiveRecord
$this->_last_activity = $value;
}
- public static function finder()
+ public static function finder($className=__CLASS__)
{
- return parent::getRecordFinder('ChatUserRecord');
+ return parent::finder($className);
}
public function getUserList()