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

Changeset 9923


Ignore:
Timestamp:
Jan 5, 2009, 7:35:44 PM (11 years ago)
Author:
ebihara
Message:

revert r9922

Location:
OpenPNE3/trunk
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/config/config_handlers.yml

    r9922 r9923  
    22  class:    sfOpenPNEViewConfigHandler
    33  file:     %SF_LIB_DIR%/config/sfOpenPNEViewConfigHandler.class.php
     4
     5config/filters.yml:
     6  class:    sfOpenPNEFilterConfigHandler
     7  file:     %SF_LIB_DIR%/config/sfOpenPNEFilterConfigHandler.class.php
  • OpenPNE3/trunk/lib/filter/sfOpenPNEExecutionFilter.class.php

    r9922 r9923  
    1010class sfOpenPNEExecutionFilter extends sfExecutionFilter
    1111{
    12   protected function handleAction($filterChain, $actionInstance)
    13   {
    14     $moduleName = $actionInstance->getModuleName();
    15     $actionName = $actionInstance->getActionName();
    16     $dispatcher = sfContext::getInstance()->getEventDispatcher();
    17 
    18     $dispatcher->notify(new sfEvent($this, 'op_action.pre_execute_'.$moduleName.'_'.$actionName, array(
    19       'moduleName'     => $moduleName,
    20       'actionName'     => $actionName,
    21       'actionInstance' => $actionInstance,
    22     )));
    23 
    24     $result = parent::handleAction($filterChain, $actionInstance);
    25 
    26     $dispatcher->notify(new sfEvent($this, 'op_action.post_execute_'.$moduleName.'_'.$actionName, array(
    27       'moduleName'     => $moduleName,
    28       'actionName'     => $actionName,
    29       'actionInstance' => $actionInstance,
    30       'result'         => $result,
    31     )));
    32 
    33     return $result;
    34   }
    35 
    3612  protected function executeView($moduleName, $actionName, $viewName, $viewAttributes)
    3713  {
     
    5329    {
    5430      array_map(array($this, 'setFormFormatterForMobile'), $form);
    55     }
    56     elseif ($form instanceof sfForm)
     31    } elseif ($form instanceof sfForm)
    5732    {
    5833      $form->getWidgetSchema()->setFormFormatterName('mobile');
Note: See TracChangeset for help on using the changeset viewer.