Changeset 2115

Show
Ignore:
Timestamp:
10/08/07 14:29:01 (15 months ago)
Author:
david
Message:

Made global request data copy unavailable from the outside of execution containers until cloned in execute(), refs #544

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/src/controller/AgaviExecutionContainer.class.php

    r2114 r2115  
    4747 
    4848  /** 
     49   * @var        AgaviRequestDataHolder A pointer to the global request data. 
     50   */ 
     51  private $globalRequestData = null; 
     52 
     53  /** 
    4954   * @var        AgaviRequestDataHolder A request data holder with arguments. 
    5055   */ 
     
    304309      } else { 
    305310        // mmmh I smell awesomeness... clone the RD JIT, yay, that's the spirit 
    306         $this->requestData = clone $this->requestData; 
     311        $this->requestData = clone $this->globalRequestData; 
    307312 
    308313        if($this->arguments !== null) { 
     
    414419 
    415420  /** 
    416    * Set this container's request data holder instance. 
     421   * Set this container's global request data holder reference. 
    417422   * 
    418423   * @param      AgaviRequestDataHolder The request data holder. 
     
    423428  public final function setRequestData(AgaviRequestDataHolder $rd) 
    424429  { 
    425     $this->requestData = $rd; 
     430    $this->globalRequestData = $rd; 
    426431  } 
    427432