Show
Ignore:
Timestamp:
04/11/08 18:37:17 (5 months ago)
Author:
mikey
Message:

break construction process in case the template constructor fails

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/ipo/session/stubAbstractSession.php

    r1531 r1532  
    6262    { 
    6363        $this->sessionName = $sessionName; 
    64         $this->doConstruct($request, $response, $sessionName); 
     64        if ($this->doConstruct($request, $response, $sessionName) === false) { 
     65            return; 
     66        } 
     67         
    6568        if ($this->hasValue(stubSession::START_TIME) == false || $this->doGetValue(stubSession::FINGERPRINT) != $this->getFingerprint()) { 
    6669            if ($this->hasValue(stubSession::START_TIME) == false) { 
     
    8689     * template method for child classes to do the real construction 
    8790     *  
    88      * @param  stubRequest  $request      request instance 
    89      * @param  stubResponse $response     response instance 
    90      * @param  string       $sessionName  name of the session 
     91     * @param   stubRequest  $request      request instance 
     92     * @param   stubResponse $response     response instance 
     93     * @param   string       $sessionName  name of the session 
     94     * @return  bool 
    9195     */ 
    9296    protected abstract function doConstruct(stubRequest $request, stubResponse $response, $sessionName);