예제 #1
0
 /**
  * @param string $className
  * @return AuditRequest
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
 /**
  * @throws CDbException
  * @return mixed
  */
 public function getDbConnection()
 {
     if (self::$db !== null) {
         return self::$db;
     }
     /** @var AuditModule $audit */
     $audit = Yii::app()->getModule('audit');
     self::$db = $audit->getDbConnection();
     self::$db->setActive(true);
     return self::$db;
 }