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

Changeset 8813


Ignore:
Timestamp:
Oct 26, 2008, 4:12:30 PM (11 years ago)
Author:
ebihara
Message:

#2886:removed format argument

Location:
OpenPNE3/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/actions/actions.class.php

    r8757 r8813  
    7979
    8080 /**
     81  * Executes profile action
     82  *
     83  * @param sfRequest $request A request object
     84  */
     85  public function executeProfile($request)
     86  {
     87    $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
     88    $this->member = MemberPeer::retrieveByPk($id);
     89    $this->friend = FriendPeer::getFriendListPager($id, 1, 5);
     90    $this->forward404Unless($this->member, 'Undefined member.');
     91
     92    return sfView::SUCCESS;
     93  }
     94
     95 /**
    8196  * Executes configUID action
    8297  *
  • OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/homeSuccess.php

    r8812 r8813  
    3535<?php
    3636$list = array(
    37   'member/editProfile' => array(
    38     'link' => 'プロフィール変更',
    39   ),
     37  link_to('プロフィール変更', 'member/editProfile'),
    4038);
    41 include_list_box('profileEdit', $list, '%link%', array('title' => 'プロフィール変更'))
     39include_list_box('profileEdit', $list, array('title' => 'プロフィール変更'))
    4240?>
    4341
    4442<?php
    4543$list = array(
    46   'member/configUID' => array(
    47     'link' => 'かんたんログイン設定',
    48   ),
     44  link_to('かんたんログイン設定', 'member/configUID'),
    4945);
    50 include_list_box('configEdit', $list, '%link%', array('title' => '設定変更'))
     46include_list_box('configEdit', $list, array('title' => '設定変更'))
    5147?>
  • OpenPNE3/trunk/apps/mobile_frontend/templates/_partsListBox.php

    r8810 r8813  
    99<tr><td bgcolor="#e0eaef">
    1010<?php
    11 $str = $sf_data->getRaw('format');
    12 
    13 foreach ($value as $search => $replace) {
    14   if ($search === 'link') {
    15     $replace = link_to($replace, $key);
    16   }
    17   $str = str_replace('%'.$search.'%', $replace, $str);
    18 }
    19 
    20 echo $str.'<br>';
     11echo $list->getRaw($key).'<br>';
    2112?>
    2213</td></tr>
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r8812 r8813  
    1818 * @see    include_partial
    1919 */
    20 :unction include_login_parts($id, $form, $link_to)
     20function include_login_parts($id, $form, $link_to)
    2121{
    2222  $params = array(
     
    3636}
    3737
    38 function include_list_box($id, $list, $format, $options = array())
     38function include_list_box($id, $list, $options = array())
    3939{
    4040  $params = array(
    4141    'id' => $id,
    4242    'list' => $list,
    43     'format' => $format,
    4443    'options' => $options,
    4544  );
Note: See TracChangeset for help on using the changeset viewer.