diff options
author | wei <> | 2007-02-27 23:48:49 +0000 |
---|---|---|
committer | wei <> | 2007-02-27 23:48:49 +0000 |
commit | 7a9626af3bef5c712901597065745d9572c3f097 (patch) | |
tree | b63b6c5ef530004ac40d57c2b58ddca773bea05d /demos/chat/protected/App_Code | |
parent | 4c86659bc90d9134b0f901572c5417aa7d9cec18 (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.php | 4 | ||||
-rw-r--r-- | demos/chat/protected/App_Code/ChatUserRecord.php | 4 |
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()
|