Development

Changeset 5814

You must first sign up to be able to contribute.

Changeset 5814

Show
Ignore:
Timestamp:
11/02/07 16:47:53 (1 year ago)
Author:
fabien
Message:

added the request as an argument to the sfAction::execute() method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/action/sfActions.class.php

    r4951 r5814  
    2727   * defined action name. 
    2828   * 
    29    * @return string A string containing the view name associated with this action 
     29   * @param  sfRequest The current sfRequest object 
     30   * 
     31   * @return string    A string containing the view name associated with this action 
    3032   * 
    3133   * @throws sfInitializationException 
     
    3335   * @see sfAction 
    3436   */ 
    35   public function execute(
     37  public function execute($request
    3638  { 
    3739    // dispatch action 
     
    4951 
    5052    // run action 
    51     $ret = $this->$actionToRun(); 
    52  
    53     return $ret; 
     53    return $this->$actionToRun($request); 
    5454  } 
    5555} 
  • trunk/lib/action/sfComponent.class.php

    r5379 r5814  
    6969   * single product. 
    7070   * 
    71    * @return mixed A string containing the view name associated with this action 
    72    */ 
    73   abstract function execute(); 
     71   * @param  sfRequest The current sfRequest object 
     72   * 
     73   * @return mixed     A string containing the view name associated with this action 
     74   */ 
     75  abstract function execute($request); 
    7476 
    7577  /** 
  • trunk/lib/action/sfComponents.class.php

    r4597 r5814  
    1919abstract class sfComponents extends sfComponent 
    2020{ 
    21   public function execute(
     21  public function execute($request
    2222  { 
    2323    throw new sfInitializationException('sfComponents initialization failed.'); 
  • trunk/lib/filter/sfExecutionFilter.class.php

    r5384 r5814  
    101101    // execute the action 
    102102    $actionInstance->preExecute(); 
    103     $viewName = $actionInstance->execute(); 
     103    $viewName = $actionInstance->execute($this->context->getRequest()); 
    104104    $actionInstance->postExecute(); 
    105105 
  • trunk/lib/plugins/sfCompat10Plugin/lib/filter/sfValidationExecutionFilter.class.php

    r5384 r5814  
    158158    // execute the action 
    159159    $actionInstance->preExecute(); 
    160     $viewName = $actionInstance->execute(); 
     160    $viewName = $actionInstance->execute($this->context->getRequest()); 
    161161    $actionInstance->postExecute(); 
    162162