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

Changeset 10063


Ignore:
Timestamp:
Jan 10, 2009, 11:59:39 AM (12 years ago)
Author:
ogawa
Message:

#3368:added default and friend navi

Location:
OpenPNE3/plugins/opDiaryPlugin/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/data/fixtures/010_navigation.yml

    r9938 r10063  
    33    type: "secure_global"
    44    uri: "diary/index"
    5     sort_order: 21;
     5    sort_order: 25
     6  default_navi_diary:
     7    type: "default"
     8    uri: "diary/listMember"
     9    sort_order: 15
     10  friend_navi_diary:
     11    type: "friend"
     12    uri: "diary/listMember"
     13    sort_order: 15
    614
    715NaviI18n:
    8   secure_global_navi_diary_i18n:
     16  secure_global_navi_diary_i18n_en:
     17    id: secure_global_navi_diary
     18    caption: "Diary"
     19    culture: "en"
     20  secure_global_navi_diary_i18n_ja:
    921    id: secure_global_navi_diary
    1022    caption: "日記"
    1123    culture: "ja_JP"
     24  default_navi_diary_i18n_en:
     25    id: default_navi_diary
     26    caption: "Diary"
     27    culture: "en"
     28  default_navi_diary_i18n_ja:
     29    id: default_navi_diary
     30    caption: "日記"
     31    culture: "ja_JP"
     32  friend_navi_diary_i18n_en:
     33    id: friend_navi_diary
     34    caption: "Diary"
     35    culture: "en"
     36  friend_navi_diary_i18n_ja:
     37    id: friend_navi_diary
     38    caption: "日記"
     39    culture: "ja_JP"
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/action/opDiaryPluginActions.class.php

    r10011 r10063  
    3939      }
    4040    }
     41
     42    if (empty($this->member))
     43    {
     44      $this->member = $this->getUser()->getMember();
     45    }
    4146  }
    4247
    4348  public function postExecute()
    4449  {
    45     if (empty($this->member))
    46     {
    47       $this->member = $this->getUser()->getMember();
    48     }
    49 
    5050    $this->setNavigation($this->member);
    5151  }
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/opDiaryPluginRouting.class.php

    r10011 r10063  
    3636        array('id' => '\d+'),
    3737        array('model' => 'Member', 'type' => 'object')
     38      ),
     39      'diary_list_mine' => new sfRoute(
     40        '/diary/listMember',
     41        array('module' => 'diary', 'action' => 'listMember')
    3842      ),
    3943      'diary_list_friend' => new sfRoute(
Note: See TracChangeset for help on using the changeset viewer.