Show
Ignore:
Timestamp:
12/04/07 17:08:44 (1 year ago)
Author:
mikey
Message:

simplified page element method signatures: request, session, response are now set via a new init() method, every other method does not have these arguments any more

Files:

Legend:

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

    r798 r1110  
    4141 
    4242    /** 
    43      * checks whether the page element is available or no
     43     * initializes the page elemen
    4444     * 
    4545     * @param   stubRequest   $request   the request data 
     
    4949     * @return  bool 
    5050     */ 
    51     public function isAvailable(stubRequest $request, stubSession $session, stubResponse $response, array $context = array()); 
     51    public function init(stubRequest $request, stubSession $session, stubResponse $response, array $context = array()); 
     52 
     53    /** 
     54     * checks whether the page element is available or not 
     55     * 
     56     * @return  bool 
     57     */ 
     58    public function isAvailable(); 
    5259 
    5360    /** 
     
    5764     * into the response! 
    5865     * 
    59      * @param  stubRequest   $request   the request data 
    60      * @param  stubSession   $session   current session 
    61      * @param  stubResponse  $response  contains response data 
    62      * @param  array         $context   optional  additional context data 
     66     * @return  mixed  content for page element 
    6367     */ 
    64     public function process(stubRequest $request, stubSession $session, stubResponse $response, array $context = array()); 
     68    public function process(); 
    6569} 
    6670?>