コード例 #1
0
ファイル: Menu.php プロジェクト: Backflag/xlzx
 /**
  * @inheritdoc
  */
 public static function getDb()
 {
     if (Configs::db() !== null) {
         return Configs::db();
     } else {
         return parent::getDb();
     }
 }
コード例 #2
0
ファイル: MenuHelper.php プロジェクト: WiconWang/CS-Iris
 /**
  * Use to invalidate cache.
  */
 public static function invalidate()
 {
     if (Configs::cache() !== null) {
         TagDependency::invalidate(Configs::cache(), self::CACHE_TAG);
     }
 }
コード例 #3
0
 /**
  * @inheritdoc
  */
 public function safeDown()
 {
     $this->dropTable(Configs::menuTable());
 }