色々な作業をスクリプト(Awk,Perl,Ruby,bash等)で実現するコード群
リビジョン | 13ddd0ce84f973390c1ea411f50ace3b4f6dd11f (tree) |
---|---|
日時 | 2017-06-20 08:08:27 |
作者 | stingll <jostingll@gmai...> |
コミッター | stingll |
情報追加バグリストのURL作成関数調査途中
@@ -59,7 +59,7 @@ | ||
59 | 59 | 2)プロジェクトID を取得 |
60 | 60 | 3)t_custom_filter を取得 と有効性のチェック |
61 | 61 | 各ユーザか全体でのバグフィルタ情報を取得する。 |
62 | - 4)nfilter_ensure_valid_filter | |
62 | + 4)filter_ensure_valid_filter | |
63 | 63 | |
64 | 64 | html_page_top2() |
65 | 65 | html_api.php で定義。 print_menu() で、タグ「メイン」「マイビュー」〜を表示する機能。 |
@@ -74,4 +74,22 @@ | ||
74 | 74 | print_api.php HTML表示方法かな?? echo '<div align="right"><small>' . lang_get( 'recently_visited' ) . ': '; |
75 | 75 | string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info = true, $p_fqdn = false )で表示か? |
76 | 76 | |
77 | +3.include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'view_all_inc.php' );←騙されたincludeだけかと思ったら、 | |
78 | + ここがバグリスト表示のプログラムだった。functionを呼び出すためかと思ったら、PHPではincludeはC言語は違う使い方。 | |
79 | + 2つのforeach文の延長で解析が難しくなる。オブジェクト指向定義や、メモリ展開した関数の呼びしを行っている。 | |
80 | + Gtagsでは追えない状況。推測して推測して解析することとなる。 | |
81 | + core/custom_function_api.php 259行目に custom_function_default_print_column_value()が定義されている | |
82 | + 272:$t_custom_field = substr( $p_column, 7 ); | |
83 | + 274:$t_field_id = custom_field_get_id_from_name( $t_custom_field ); | |
77 | 84 | |
85 | + custom_field_COLUMNname の連想配列IDを求める。t_custom_field からIDをもとめ、バグIDとプロジェクトIDから | |
86 | + そのカラムの型を判断し表示するようになっている。 | |
87 | + 今必要なものは、データそのものなので、IDを "custom_*" の ”*”を指定した配列でデータが取れるのではないか | |
88 | + 確認してから、処理を考える。"工事日付データ”はcore/custom_function_api.phpの1266行目の | |
89 | + custom_field_get_value( $p_field_id, $p_bug_id ); | |
90 | + で取得している。 | |
91 | + | |
92 | + ※バグリストにリンクされるバグIDのHTMLを作成するところは以下 | |
93 | + string_api.php string_get_bug_view_link | |
94 | + | |
95 | + |