12345678910111213141516171819202122 |
- <?php
- class MongodbGrammarSpecial extends EMongoDocument {
- public function __construct() {
- return self::$db = Yii::app()->mongodb1;
- }
- public static function model($className = __CLASS__){
- return parent::model($className);
- }
- public function collectionName()
- {
- return 'english_grammar_special';
- }
-
- public function englishTree(){
-
- return $this->findAll();
- }
- }
|