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

Changeset 11395


Ignore:
Timestamp:
Apr 21, 2009, 9:56:02 PM (13 years ago)
Author:
ShogoKawahara
Message:

#3666:added some migration script

Location:
OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile
Files:
6 added
16 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/mobile_frontend/modules/message/templates/_dustListRecord.php

    r11371 r11395  
    11<?php echo op_format_date($message->getCreatedAt(), 'XDateTime') ?><br>
    22<?php echo sprintf('%s (%s)',
    3   link_to(op_truncate($message->getSubject(), 28), '@readDeletedMessage?id='. $message->getViewMessageId()),
     3  link_to(op_truncate($message->getSubject(), 28), '@readDustMessage?id='. $message->getViewMessageId()),
    44  $message->getSendFromOrTo()->getName()
    55);
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/mobile_frontend/modules/message/templates/_receiveListRecord.php

    r11371 r11395  
    88<?php endif; ?><br>
    99<?php echo sprintf('%s (%s)',
    10   link_to(op_truncate($message->getSubject(), 28), '@readMessage?id='. $message->getId()),
     10  link_to(op_truncate($message->getSubject(), 28), '@readReceiveMessage?id='. $message->getId()),
    1111  $message->getSendFrom()->getName()
    1212); ?>
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/mobile_frontend/modules/message/templates/listSuccess.php

    r11371 r11395  
    55<font color="#FF0000"><?php echo $form->renderGlobalErrors() ?></font>
    66<?php endif; ?>
    7 <form action="<?php echo url_for('@'.$message_type.'List') ?>" method="post">
     7<form action="<?php echo url_for('@'.$messageType.'List') ?>" method="post">
    88<?php echo $form->renderHiddenFields(); ?>
    99<?php $_list = array() ?>
    1010<?php foreach ($pager->getResults() as $message): ?>
    1111<?php $_list[] = $form['message_ids['.$message->getId().']']->render().
    12 get_partial($message_type.'ListRecord', array('message' => $message)); ?>
     12get_partial($messageType.'ListRecord', array('message' => $message)); ?>
    1313<?php endforeach; ?>
    1414<?php op_include_list('messageList', $_list, array()); ?>
    15 <?php if ($message_type == 'dust'): ?>
     15<?php if ($messageType == 'dust'): ?>
    1616<input type="submit" name="restore" value="<?php echo __('Restore') ?>"><br>
    1717<?php endif; ?>
    1818<input type="submit" value="<?php echo __('Delete') ?>">
    1919</form>
    20 <center><?php op_include_pager_navigation($pager, '@'.$message_type.'List?page=%d', array('is_total' => false)) ?></center>
     20<center><?php op_include_pager_navigation($pager, '@'.$messageType.'List?page=%d', array('is_total' => false)) ?></center>
    2121<?php else: ?>
    2222<?php echo __('There are no messages.') ?><br><br>
    2323<?php endif; ?>
    2424<hr>
    25 <?php include_partial('message/menu', array('messageType' => $message_type)) ?>
     25<?php include_partial('message/menu', array('messageType' => $messageType)) ?>
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/mobile_frontend/modules/message/templates/showSuccess.php

    r11371 r11395  
    2222<hr>
    2323
    24 <?php if ($sf_params->get('type') == 'dust'): ?>
     24<?php if ($messageType == 'dust'): ?>
    2525<?php echo link_to(__('Restore'), 'message/restore?id='.$deletedId) ?><br>
    2626<?php endif; ?>
     
    2828<?php echo link_to(__('Delete'), $deleteButton) ?>
    2929
    30 <?php if ($sf_params->get('type') != 'dust' && !$message->getIsSender()): ?>
     30<?php if ($messageType != 'dust' && !$message->getIsSender()): ?>
    3131<br><?php echo link_to(__('Reply'), 'message/reply?id='.$message->getId()) ?>
    3232<?php endif; ?>
     
    3535
    3636
    37 <?php if ($sf_params->get('type') == 'receive'): ?>
     37<?php if ($messageType == 'receive'): ?>
    3838<?php echo link_to(__('Inbox'), '@receiveList') ?>
    39 <?php elseif ($sf_params->get('type') == 'send'): ?>
     39<?php elseif ($messageType == 'send'): ?>
    4040<?php echo link_to(__('Sent Message'), '@sendList') ?>
    4141<?php else : ?>
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/pc_frontend/modules/member/config/view.yml

    r9821 r11395  
    55      is_component: true
    66      parts:    [information]
    7       target:   [bottom]
     7      target:   [bodyBottom]
    88
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/pc_frontend/modules/message/templates/listSuccess.php

    r11361 r11395  
    11<?php use_helper('Date', 'JavascriptBase'); ?>
    2 <?php include_partial('message/sidemenu', array('list_type' => $sf_params->get('type'))); ?>
     2<?php include_partial('message/sidemenu', array('list_type' => $messageType)); ?>
    33<?php echo javascript_tag("
    44function checkAll() {
     
    2020") ?>
    2121<?php
    22 switch ($message_type):
     22switch ($messageType):
    2323  case 'receive':
    2424    $title = __('Inbox');
     
    4747<?php if ($pager->getNbResults()): ?>
    4848<div class="pagerRelativeMulti">
    49 <?php if ($message_type == 'receive'): ?>
     49<?php if ($messageType == 'receive'): ?>
    5050<p class="icons">
    5151<span>
     
    7979<?php foreach ($pager->getResults() as $message): ?>
    8080<?php
    81 switch ($message_type):
     81switch ($messageType):
    8282  case 'receive':
    8383    $form_delete = $form["message_ids[".$message->getId()."]"];
     
    8585    $sender = $message->getSendFrom();
    8686    $detail_title = $message->getSubject();
    87     $detail_url = '@readMessage?id='.$message->getMessageId();
     87    $detail_url = '@readReceiveMessage?id='.$message->getMessageId();
    8888    break;
    8989  case 'send':
     
    106106    $sender = $message->getSendFromOrTo();
    107107    $detail_title = $message->getSubject();
    108     $detail_url = '@readDeletedMessage?id='.$message->getViewMessageId();
     108    $detail_url = '@readDustMessage?id='.$message->getViewMessageId();
    109109    break;
    110110endswitch;
    111111?>
    112 <tr <?php if ($message_type == 'receive' && $message->getIsRead() == 0): ?>class="unread"<?php endif; ?>>
     112<tr <?php if ($messageType == 'receive' && $message->getIsRead() == 0): ?>class="unread"<?php endif; ?>>
    113113<td class="status"><span>
    114 <?php if ($message_type == 'send'): ?>
     114<?php if ($messageType == 'send'): ?>
    115115<?php echo image_tag('/opMessagePlugin/images/icon_mail_3.gif') ?>
    116 <?php elseif ($message_type == 'draft'): ?>
     116<?php elseif ($messageType == 'draft'): ?>
    117117<?php echo image_tag('/opMessagePlugin/images/icon_mail_1.gif') ?>
    118 <?php elseif ($message_type == 'dust'): ?>
     118<?php elseif ($messageType == 'dust'): ?>
    119119  <?php if ($message->getIcon() && $message->getIconAlt()): ?>
    120120  <?php echo image_tag('/opMessagePlugin/images/'.$message->getIcon(), array('alt' => $message->getIconAlt())) ?>
     
    147147</p>
    148148<ul class="moreInfo button">
    149 <?php if ($message_type == 'dust'): ?>
     149<?php if ($messageType == 'dust'): ?>
    150150<li>
    151151<input type="submit" class="input_submit" name="restore" value="<?php echo __('Restore') ?>" />
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/apps/pc_frontend/modules/message/templates/showSuccess.php

    r11361 r11395  
    11<?php use_helper('Date', 'Text'); ?>
    2 <?php include_partial('message/sidemenu', array('list_type' => $sf_request->getParameter('type'))) ?>
     2<?php include_partial('message/sidemenu', array('list_type' => $messageType)) ?>
    33<div class="dparts messageDetailBox">
    44<div class="parts">
    55<div class="partsHeading"><h3><?php echo __('Message') ?></h3></div>
    6 <?php
    7 /* @todo 前後のメッセージ
    8 ({if $prev_c_message_id || $next_c_message_id})
     6<?php /*
     7TODO: Previous and Next
     8<?php if ($previousMessage || $nextMessage): ?>
    99<div class="block prevNextLinkLine">
    10 ({if $prev_c_message_id})<p class="prev"><a href="({t_url m=pc a=page_h_message})&amp;target_c_message_id=({$prev_c_message_id})&amp;({if $box == 'outbox'})box=({$box})({else})jyusin_c_message_id=({$prev_c_message_id})({/if})">«前を表示</a></p>({/if})
    11 ({if $next_c_message_id})<p class="next"><a href="({t_url m=pc a=page_h_message})&amp;target_c_message_id=({$next_c_message_id})&amp;({if $box == 'outbox'})box=({$box})({else})jyusin_c_message_id=({$next_c_message_id})({/if})">次を表示»</a></p>({/if})
     10<?php if ($previousMessage): ?><p class="prev"><?php echo link_to(__('Previous'), '@read'.ucfirst($messageType).'Message?id='.$previousMessage->getId()) ?></p><?php endif; ?>
     11<?php if ($nextMessage): ?><p class="next"><?php echo link_to(__('Next'),'@read'.ucfirst($messageType).'Message?id='.$nextMessage->getId()) ?> </p><?php endif; ?>
    1212</div>
    13 ({/if})
    14 */
    15 ?>
     13<?php endif; ?>
     14*/ ?>
    1615<table>
    1716<tr>
     
    6665<div class="operation">
    6766<ul class="moreInfo button">
    68 <?php if ($sf_request->getParameter('type') == 'dust'): ?>
     67<?php if ($messageType == 'dust'): ?>
    6968<li><?php echo button_to(__('Restore'), 'message/restore?id='.$deletedId)?></li>
    7069<?php endif; ?>
    7170<li><?php echo button_to(__('Delete'), $deleteButton) ?></li>
    72 <?php if ($sf_request->getParameter('type') != 'dust' && !$message->getIsSender()): ?>
     71<?php if ($messageType != 'dust' && !$message->getIsSender()): ?>
    7372<li><?php echo button_to(__('Reply'), 'message/reply?id='.$message->getId()) ?></li>
    7473</ul>
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/config/schema.yml

    r10378 r11395  
    2222    id: ~
    2323    #送信者
    24     member_id: { type: integer, foreignTable: member, foreignReference: id }
     24    member_id: { type: integer, foreignTable: member, foreignReference: id, onDelete: setnull }
    2525    subject: { type: longvarchar }
    2626    body: { type: longvarchar }
     
    4343    id: ~
    4444    #受信者
    45     member_id: { type: integer, foreignTable: member, foreignReference: id }
     45    member_id: { type: integer, foreignTable: member, foreignReference: id, onDelete: setnull }
    4646    message_id: { type: integer, foreignTable: message, foreignReference: id }
    4747    is_read: { type: boolean, required: true, default: 0 }
     
    5353    id: ~
    5454    #削除者
    55     member_id: { type: integer, foreignTable: member, foreignReference: id }
     55    member_id: { type: integer, foreignTable: member, foreignReference: id, onDelete: cascade }
    5656    message_id: { type: integer, required: true }
    5757    message_send_list_id: { type: integer, required: true }
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/action/opMessagePluginMessageActions.class.php

    r11361 r11395  
    2121  * Executes index action
    2222  *
    23   * @param sfRequest $request A request object
     23  * @param sfWebRequest $request A request object
    2424  */
    2525  public function executeIndex($request)
     
    3434  * @param sfWebRequest $request A request object
    3535  */
    36   public function executeList($request)
    37   {
    38     switch ($request->getParameter('type'))
     36  public function executeList(sfWebRequest $request)
     37  {
     38    $this->messageType = $request->getParameter('type');
     39    switch ($this->messageType)
    3940    {
    4041      case 'receive' :
     
    6566        throw new LogicException();
    6667    }
    67     $this->message_type = $request->getParameter('type');
    6868
    6969    $this->pager = call_user_func(array($class, $function),
     
    102102  * Executes show action
    103103  *
    104   * @param sfRequest $request A request object
    105   */
    106   public function executeShow($request)
     104  * @param sfWebRequest $request A request object
     105  */
     106  public function executeShow(sfWebRequest $request)
    107107  {
    108108    $this->message = SendMessageDataPeer::retrieveByPk($request->getParameter('id'));
    109     $this->forward404unless($message = $this->isReadable($request->getParameter('type')));
    110     switch ($request->getParameter('type')) {
     109    $this->messageType = $request->getParameter('type');
     110    $this->forward404unless($message = $this->isReadable($this->messageType));
     111    switch ($this->messageType) {
    111112      case "receive":
    112113        $this->deleteButton = '@deleteReceiveMessage?id='.$message->getId();
     
    127128  * Executes delete action
    128129  *
    129   * @param sfRequest $request A request object
    130   */
    131   public function executeDelete($request)
    132   {
    133     switch ($request->getParameter('type')) {
    134       case "receiveList":
    135         $object_name = 'MessageSendList';
    136         break;
    137       case "sendList":
    138         $object_name = 'Message';
    139         break;
    140       case "dustList":
    141         $object_name = 'DeletedMessage';
     130  * @param sfWebRequest $request A request object
     131  */
     132  public function executeDelete(sfWebRequest $request)
     133  {
     134    $messageType = $request->getParameter('type');
     135    switch ($messageType) {
     136      case "receive":
     137        $objectName = 'MessageSendList';
     138        break;
     139      case "send":
     140        $objectName = 'Message';
     141        break;
     142      case "dust":
     143        $objectName = 'DeletedMessage';
    142144        break;
    143145      default :
    144146        throw new LogicException();
    145147    }
    146     if ($object_name) {
    147       DeletedMessagePeer::deleteMessage(sfContext::getInstance()->getUser()->getMemberId(),
     148    DeletedMessagePeer::deleteMessage(sfContext::getInstance()->getUser()->getMemberId(),
    148149                                      $request->getParameter('id'),
    149                                       $object_name);
    150     }
    151     $this->redirect('message/'.$request->getParameter('type'));
     150                                      $objectName);
     151   
     152    $this->redirect('@'.$messageType.'List');
    152153  }
    153154 
     
    155156  * Executes restore action
    156157  *
    157   * @param sfRequest $request A request object
    158   */
    159   public function executeRestore($request)
     158  * @param sfWebRequest $request A request object
     159  */
     160  public function executeRestore(sfWebRequest $request)
    160161  {
    161162    DeletedMessagePeer::restoreMessage($request->getParameter('id'));
     
    166167  * Executes sendMessage action
    167168  *
    168   * @param sfRequest $request A request object
    169   */
    170   public function executeSendToFriend($request)
     169  * @param sfWebRequest $request A request object
     170  */
     171  public function executeSendToFriend(sfWebRequest $request)
    171172  {
    172173    if ($request->getParameter('message'))
     
    186187    }
    187188
    188     if ($sendMemberId == $this->getUser()->getMemberId())
    189     {
    190       $this->forward404();
    191     }
     189    $this->forward404If($sendMemberId == $this->getUser()->getMemberId());
    192190   
    193191    $this->form = new SendMessageForm($this->message, array(
     
    222220  * Executes editMessage action
    223221  *
    224   * @param sfRequest $request A request object
    225   */
    226   public function executeEdit($request)
     222  * @param sfWebRequest $request A request object
     223  */
     224  public function executeEdit(sfWebRequest $request)
    227225  {
    228226    $this->message = SendMessageDataPeer::retrieveByPk($request->getParameter('id'));
     
    245243  * Executes replyMessage action
    246244  *
    247   * @param sfRequest $request A request object
    248   */
    249   public function executeReply($request)
     245  * @param sfWebRequest $request A request object
     246  */
     247  public function executeReply(sfWebRequest $request)
    250248  {
    251249    $message = SendMessageDataPeer::retrieveByPk($request->getParameter('id'));
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/DeletedMessage.php

    r11361 r11395  
    1111class DeletedMessage extends BaseDeletedMessage
    1212{
    13   private $message = null;
     13  protected
     14    $message = null;
     15
    1416  /**
    1517   * 宛先/送信先を取得する
     
    113115 
    114116  /**
    115    * メッセージID(表示用)を取得する
    116    * @return int
     117   * get the message's id to read message
     118   *
     119   * @return integer
    117120   */
    118121  public function getViewMessageId()
    119122  {
    120     if ($this->getMessageId()) {
    121       if (!$this->message) {
     123    if ($this->getMessageId())
     124    {
     125      if (!$this->message)
     126      {
    122127        $this->message = SendMessageDataPeer::retrieveByPK($this->getMessageId());
    123128      }
    124     } else if ($this->getMessageSendListId()) {
     129    }
     130    else if ($this->getMessageSendListId())
     131    {
    125132      $this->message = MessageSendListPeer::retrieveByPK($this->getMessageSendListId());
    126133    }
    127     if ($this->message) {
     134    if ($this->message)
     135    {
    128136      return $this->message->getId();
    129137    }
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/DeletedMessagePeer.php

    r10033 r11395  
    1111class DeletedMessagePeer extends BaseDeletedMessagePeer
    1212{
     13 /**
     14  * add delete message criteria
     15  *
     16  * @param Criteria $criteria
     17  * @param integer  $memberId
     18  */
     19  public static function addDeleteMessageCriteria($criteria, $memberId = null)
     20  {
     21    if (is_null($memberId))
     22    {
     23      $memberId = sfContext::getInstance()->getUser()->getMemberId();
     24    }
     25    $criteria->add(self::MEMBER_ID, $memberId);
     26    $criteria->add(self::IS_DELETED, false);
     27  }
     28
    1329  /**
    1430   * 削除済みメッセージ一覧
    15    * @param $member_id
    16    * @param $page
    17    * @param $size
     31   * @param integer $memberId
     32   * @param integer $page
     33   * @param integer $size
    1834   * @return DeletedMessage object(の配列)
    1935   */
    20   public static function getDeletedMessagePager($member_id, $page = 1, $size = 20)
     36  public static function getDeletedMessagePager($memberId = null, $page = 1, $size = 20)
    2137  {
    2238    $c = new Criteria();
    23     $c->add(self::MEMBER_ID, $member_id);
    24     $c->add(self::IS_DELETED, 0);
     39    self::addDeleteMessageCriteria($c, $memberId);
    2540    $c->addDescendingOrderByColumn(self::CREATED_AT);
    2641    $pager = new sfPropelPager('DeletedMessage', $size);
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/MessageSendList.php

    r11361 r11395  
    5252  }
    5353
    54   /**
    55    * get message subject
    56    *
    57    * @return string
    58    */
     54 /**
     55  * get message subject
     56  *
     57  * @return string
     58  */
    5959  public function getSubject()
    6060  {
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/MessageSendListPeer.php

    r10033 r11395  
    1919{
    2020  /**
     21   * add receive message criteria
     22   *
     23   * @param Criteria $criteria
     24   * @param integer  $memberId
     25   */
     26  public static function addReceiveMessageCriteria($criteria, $memberId = null)
     27  {
     28    if (is_null($memberId))
     29    {
     30      $memberId = sfContext::getInstance()->getUser()->getMemberId();
     31    }
     32    $criteria->addJoin(self::MESSAGE_ID, SendMessageDataPeer::ID);
     33    $criteria->add(self::MEMBER_ID, $memberId);
     34    $criteria->add(self::IS_DELETED, false);
     35    $criteria->add(SendMessageDataPeer::IS_SEND, true);
     36  }
     37
     38  /**
    2139   * 受信メッセージ一覧
    22    * @param $member_id
     40   * @param $memberId
    2341   * @param $page
    2442   * @param $size
    2543   * @return MessageSendList object(の配列)
    2644   */
    27   public static function getReceiveMessagePager($member_id, $page = 1, $size = 20)
     45  public static function getReceiveMessagePager($memberId = null, $page = 1, $size = 20)
    2846  {
    2947    $c = new Criteria();
    30     $c->addJoin(self::MESSAGE_ID, SendMessageDataPeer::ID);
    31     $c->add(self::MEMBER_ID, $member_id);
    32     $c->add(self::IS_DELETED, 0);
    33     $c->add(SendMessageDataPeer::IS_SEND, 1);
     48    self::addReceiveMessageCriteria($c, $memberId);
    3449    $c->addDescendingOrderByColumn(self::CREATED_AT);
    3550
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/SendMessageData.php

    r11361 r11395  
    1717class SendMessageData extends BaseSendMessageData
    1818{
     19  protected
     20    $previous = null,
     21    $next = null;
     22
    1923  /**
    2024   * メッセージが本人送信のものかどうか確認する
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/model/SendMessageDataPeer.php

    r10033 r11395  
    1717class SendMessageDataPeer extends BaseSendMessageDataPeer
    1818{
     19 /**
     20  * add send message criteria
     21  *
     22  * @param Criteria $criteria
     23  * @param integer  $memberId
     24  */
     25  public static function addSendMessageCriteria($criteria, $memberId = null)
     26  {
     27    if (is_null($memberId))
     28    {
     29      $memberId = sfContext::getInstance()->getUser()->getMemberId();
     30    }
     31    $criteria->add(self::MEMBER_ID, $memberId);
     32    $criteria->add(self::IS_DELETED, 0);
     33    $criteria->add(self::IS_SEND, true);
     34  }
     35
    1936  public static function getHensinMassage($member_id, $message_id)
    2037  {
     
    3249  /**
    3350   * 送信メッセージ一覧
    34    * @param $member_id
     51   * @param $memberId
    3552   * @param $page
    3653   * @param $size
    3754   * @return Message object(の配列)
    3855   */
    39   public static function getSendMessagePager($member_id, $page = 1, $size = 20)
     56  public static function getSendMessagePager($memberId = null, $page = 1, $size = 20)
    4057  {
    4158    $c = new Criteria();
    42     $c->add(self::MEMBER_ID, $member_id);
    43     $c->add(self::IS_DELETED, 0);
    44     $c->add(SendMessageDataPeer::IS_SEND, 1);
     59    self::addSendMessageCriteria($c, $memberId);
    4560    $c->addDescendingOrderByColumn(self::CREATED_AT);
    46 
    4761    $pager = new sfPropelPager('SendMessageData', $size);
    4862    $pager->setCriteria($c);
  • OpenPNE3/plugins/opMessagePlugin/branches/kawahara_mobile/lib/opMessagePluginRouting.class.php

    r11361 r11395  
    2020  {
    2121    $routing = $event->getSubject();
     22    // message list
    2223    $routing->prependRoute('receiveList',
    2324      new sfRoute(
     
    4546    );
    4647
    47 
    48     $routing->prependRoute('readMessage',
     48    //show message
     49    $routing->prependRoute('readReceiveMessage',
    4950      new sfRoute(
    5051        '/message/read/:id',
     
    6061      )
    6162    );
    62     $routing->prependRoute('readDeletedMessage',
     63    $routing->prependRoute('readDustMessage',
    6364      new sfRoute(
    6465        '/message/checkDelete/:id',
     
    6768      )
    6869    );
     70
     71    //delete message
    6972    $routing->prependRoute('deleteReceiveMessage',
    7073      new sfRoute(
    7174        '/message/deleteReceiveMessage/:id',
    72         array('module' => 'message', 'action' => 'delete', 'type' => 'receiveList'),
     75        array('module' => 'message', 'action' => 'delete', 'type' => 'receive'),
    7376        array('id' => '\d+')
    7477      )
     
    7780      new sfRoute(
    7881        '/message/deleteSendMessage/:id',
    79         array('module' => 'message', 'action' => 'delete', 'type' => 'sendList'),
     82        array('module' => 'message', 'action' => 'delete', 'type' => 'send'),
    8083        array('id' => '\d+')
    8184      )
     
    8487      new sfRoute(
    8588        '/message/deleteComplete/:id',
    86         array('module' => 'message', 'action' => 'delete', 'type' => 'dustList'),
     89        array('module' => 'message', 'action' => 'delete', 'type' => 'dust'),
    8790        array('id' => '\d+')
    8891      )
Note: See TracChangeset for help on using the changeset viewer.