示例#1
0
文件: Menu.php 项目: Backflag/xlzx
 /**
  * @inheritdoc
  */
 public static function getDb()
 {
     if (Configs::db() !== null) {
         return Configs::db();
     } else {
         return parent::getDb();
     }
 }
示例#2
0
 /**
  * Use to invalidate cache.
  */
 public static function invalidate()
 {
     if (Configs::cache() !== null) {
         TagDependency::invalidate(Configs::cache(), self::CACHE_TAG);
     }
 }
 /**
  * @inheritdoc
  */
 public function safeDown()
 {
     $this->dropTable(Configs::menuTable());
 }