• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2652 (tree)
Time2020-04-20 02:08:38
Authorumethyl

Log Message

Option_chaos_open_cast_none:親クラス移行調整

Change Summary

Incremental Difference

--- trunk/include/cast_class.php (revision 2651)
+++ trunk/include/cast_class.php (revision 2652)
@@ -166,6 +166,7 @@
166166 public static function GenerateMessage(array $role_count_list, $css = false) {
167167 $filter = OptionManager::GetCastMessageFilter();
168168
169+ //通知なし判定
169170 if ($filter->IgnoreCastMessage()) {
170171 return $filter->GetCastMessage();
171172 }
--- trunk/include/option/chaos_open_cast_full.php (revision 2651)
+++ trunk/include/option/chaos_open_cast_full.php (revision 2652)
@@ -17,6 +17,10 @@
1717 return '完全通知 (通常村相当)';
1818 }
1919
20+ protected function GetURL() {
21+ return 'chaos.php#' . $this->name;
22+ }
23+
2024 //-- 役職通知 --//
2125 //役職通知無効判定
2226 public function IgnoreCastMessage() {
--- trunk/include/option/chaos_open_cast_none.php (revision 2651)
+++ trunk/include/option/chaos_open_cast_none.php (revision 2652)
@@ -4,12 +4,16 @@
44 */
55 OptionLoader::LoadFile('chaos_open_cast_full');
66 class Option_chaos_open_cast_none extends Option_chaos_open_cast_full {
7+ public function GetName() {
8+ return $this->GetCaption();
9+ }
10+
711 public function GetCaption() {
812 return '通知なし';
913 }
1014
11- protected function GetURL() {
12- return 'chaos.php#' . $this->name;
15+ public function GetExplain() {
16+ return $this->GetCaption();
1317 }
1418
1519 public function IgnoreCastMessage() {
Show on old repository browser