Show
Ignore:
Timestamp:
03/19/08 17:47:47 (8 months ago)
Author:
mikey
Message:

refactoring #137, part 1: enhanced page factories

Files:

Legend:

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

    r1231 r1438  
    77 * @subpackage  websites 
    88 */ 
    9 stubClassLoader::load('net::stubbles::websites::stubPage', 
    10                       'net::stubbles::websites::stubPageConfigurationException
     9stubClassLoader::load('net::stubbles::ipo::request::stubRequest', 
     10                      'net::stubbles::websites::stubPage
    1111); 
    1212/** 
     
    1818interface stubPageFactory extends stubObject 
    1919{ 
     20 
     21    /** 
     22     * sets page name prefix  
     23     * 
     24     * @param  string  $pagePrefix 
     25     */ 
     26    public function setPagePrefix($pagePrefix); 
     27 
     28    /** 
     29     * sets name of home page 
     30     * 
     31     * @param  string  $indexPageName 
     32     */ 
     33    public function setIndexPageName($indexPageName); 
     34 
     35    /** 
     36     * sets the name of the request parameter containing the page name 
     37     * 
     38     * @param  string  $requestParamName 
     39     */ 
     40    public function setRequestParamName($requestParamName); 
     41 
     42    /** 
     43     * retrieves the page name 
     44     * 
     45     * @param   stubRequest  $request 
     46     * @return  string 
     47     */ 
     48    public function getPageName(stubRequest $request); 
     49 
    2050    /** 
    2151     * checks whether the page factory knows the page or not 
    2252     * 
    23      * @param   string  $configSource  source of the page configuration to use 
     53     * @param   string  $pageName  name of the page to check for 
    2454     * @return  bool 
    2555     */ 
    26     public function hasPage($configSource); 
    27      
     56    public function hasPage($pageName); 
     57 
    2858    /** 
    2959     * returns the configured stubPage instance 
    3060     * 
    31      * @param   string    $configSource  source of the page configuration to us
     61     * @param   string    $pageName  name of the page to retriev
    3262     * @return  stubPage 
    33      * @throws  stubPageConfigurationException 
    3463     */ 
    35     public function getPage($configSource); 
     64    public function getPage($pageName); 
    3665} 
    3766?>