• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン2044 (tree)
日時2017-06-11 03:39:58
作者umethyl

ログメッセージ

TalkBuilder::TalkDebug()

変更サマリ

差分

--- trunk/include/talk/talk_class.php (revision 2043)
+++ trunk/include/talk/talk_class.php (revision 2044)
@@ -260,7 +260,7 @@
260260
261261 //発言生成
262262 public function Generate(TalkParser $talk) {
263- //$this->AddDebug(print_r($talk, true), '◆talk[row]');
263+ //$this->TalkDebug(print_r($talk, true), '◆talk[row]');
264264 //発言ユーザを取得
265265 /*
266266 $uname は必ず $talk から取得すること。
@@ -272,7 +272,7 @@
272272 if (DB::$ROOM->IsOn(RoomMode::LOG) && isset($talk->role_id)) { //役職スイッチ処理
273273 //閲覧者のスイッチに伴う可視性のリロード処理
274274 if ($actor->ChangePlayer($talk->role_id) && $actor->IsSame($this->actor)) {
275- //$this->AddDebug($talk->role_id, '◆Switch');
275+ //$this->TalkDebug($talk->role_id, '◆Switch');
276276 $this->LoadFilter();
277277 $this->LoadFlag();
278278 }
@@ -414,8 +414,8 @@
414414 return true;
415415 }
416416
417- //デバッグ用
418- public function AddDebug($str, $symbol = '') {
417+ //発言 (デバッグ用)
418+ public function TalkDebug($str, $symbol = '') {
419419 $stack = array(
420420 'str' => $str,
421421 'symbol' => $symbol,
@@ -518,7 +518,7 @@
518518 private function IsMindRead(TalkParser $talk, User $user, User $real, $secret = null) {
519519 $mind_read = $this->IsMindReadRole($user, $real); //特殊発言透過判定
520520 $location = $secret ? RoleTalk::GetLocation($user, $real) : $talk->location;
521- //$this->AddDebug($location, '◆Location');
521+ //$this->TalkDebug($location, '◆Location');
522522 switch ($location) {
523523 case TalkLocation::COMMON: //共有者
524524 return $mind_read || $this->flag->common;
@@ -536,7 +536,7 @@
536536 return $mind_read || $this->flag->dummy_boy || $this->actor->IsSameName($talk->uname);
537537
538538 default: //ここに来たらロジックエラー
539- $this->AddDebug('Error: Location Error', '◆Location Check');
539+ $this->TalkDebug('Error: Location Error', '◆Location Check');
540540 return false;
541541 }
542542 }
--- trunk/include/functions.php (revision 2043)
+++ trunk/include/functions.php (revision 2044)
@@ -299,7 +299,7 @@
299299 //Talk 出力
300300 public static function t($data, $name = null) {
301301 $builder = class_exists('Talk') ? Talk::GetBuilder() : null;
302- return is_null($builder) ? self::p($data, $name) : $builder->AddDebug($data, $name);
302+ return is_null($builder) ? self::p($data, $name) : $builder->TalkDebug($data, $name);
303303 }
304304 }
305305
旧リポジトリブラウザで表示