ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 982


Ignore:
Timestamp:
Dec 1, 2006, 8:11:31 PM (15 years ago)
Author:
ebihara
Message:

ファンクションキャッシュをしやすくするために、紹介文取得関連関数内でコールしているdb_common_c_member4c_member_id_LIGHTを関数の外に出した。

Location:
OpenPNE/branches/ebihara/dev_2_6
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/dev_2_6/webapp/lib/db/friend.php

    r981 r982  
    204204
    205205    $list = db_get_all_limit($sql, 0, $limit, $params);
    206     foreach ($list as $key => $value) {
    207         $list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
    208     }
    209206    return $list;
    210207}
     208
     209
    211210
    212211/**
     
    344343    $list = db_get_all_limit($sql, 0, $limit, $params);
    345344
    346     foreach ($list as $key => $value) {
    347         $list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
    348     }
    349345    return $list;
    350346}
  • OpenPNE/branches/ebihara/dev_2_6/webapp/modules/pc/page/f_home.php

    r665 r982  
    6666
    6767        $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id);
     68        foreach ($c_friend_comment_list as $key => $value) {
     69            $c_friend_comment_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     70        }
    6871        $this->set('c_friend_comment_list', $c_friend_comment_list);
    6972        $c_friend_list = p_f_home_c_friend_list4c_member_id($target_c_member_id, 9);
  • OpenPNE/branches/ebihara/dev_2_6/webapp/modules/pc/page/h_home.php

    r665 r982  
    9090        // 紹介文
    9191        $c_friend_intro_list = p_h_home_c_friend_intro_list4c_member_id($u, 5);
     92        foreach ($c_friend_intro_list as $key => $value) {
     93            $c_friend_intro_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
     94        }
    9295        $this->set('c_friend_intro_list', $c_friend_intro_list);
    9396
  • OpenPNE/branches/ebihara/dev_2_6/webapp/modules/pc/page/h_prof.php

    r269 r982  
    3030        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
    3131
    32         $this->set('c_friend_comment_list', p_f_home_c_friend_comment4c_member_id($target_c_member_id));
     32        $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id);
     33        foreach ($c_friend_comment_list as $key => $value) {
     34            $c_friend_comment_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     35        }
     36        $this->set('c_friend_comment_list', $c_friend_comment_list);
    3337        $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($target_c_member_id, 9));
    3438        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
  • OpenPNE/branches/ebihara/dev_2_6/webapp_biz/modules/pc/page/f_home.php

    r959 r982  
    6262        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
    6363
    64         $this->set('c_friend_comment_list', p_f_home_c_friend_comment4c_member_id($target_c_member_id));
     64        $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id);
     65        foreach ($c_friend_comment_list as $key => $value) {
     66            $c_friend_comment_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     67        }
     68        $this->set('c_friend_comment_list', $c_friend_comment_list);
    6569        $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($target_c_member_id, 9));
    6670        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
  • OpenPNE/branches/ebihara/dev_2_6/webapp_biz/modules/pc/page/h_home.php

    r959 r982  
    8888
    8989        // 紹介文
    90         $this->set('c_friend_intro_list', p_h_home_c_friend_intro_list4c_member_id($u, 5));
     90        $c_friend_intro_list = p_h_home_c_friend_intro_list4c_member_id($u, 5);
     91        foreach ($c_friend_intro_list as $key => $value) {
     92            $c_friend_intro_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id_from']);
     93        }
     94        $this->set('c_friend_intro_list', $c_friend_intro_list);
    9195
    9296        // 今日の日付、曜日
  • OpenPNE/branches/ebihara/dev_2_6/webapp_biz/modules/pc/page/h_prof.php

    r959 r982  
    3030        $this->set('c_rss_cache_list', p_f_home_c_rss_cache_list4c_member_id($target_c_member_id, 5));
    3131
    32         $this->set('c_friend_comment_list', p_f_home_c_friend_comment4c_member_id($target_c_member_id));
     32        $c_friend_comment_list = p_f_home_c_friend_comment4c_member_id($target_c_member_id);
     33        foreach ($c_friend_comment_list as $key => $value) {
     34            $c_friend_comment_list[$key] += db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     35        }
     36        $this->set('c_friend_comment_list', $c_friend_comment_list);
    3337        $this->set('c_friend_list', p_f_home_c_friend_list4c_member_id($target_c_member_id, 9));
    3438        $this->set('c_friend_count', db_friend_count_friends($target_c_member_id));
Note: See TracChangeset for help on using the changeset viewer.