Changeset 1598

Show
Ignore:
Timestamp:
05/26/08 12:14:53 (3 months ago)
Author:
mikey
Message:

add construction template method to prevent constructor overloading

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisAbstractExtension.php

    r1301 r1598  
    5454        $this->session  = $session; 
    5555        $this->response = $response; 
     56        $this->doConstruct(); 
     57    } 
     58 
     59    /** 
     60     * optional template method to do some constructor work in derived classes 
     61     */ 
     62    protected function doConstruct() 
     63    { 
     64        // intentionally empty 
    5665    } 
    5766