00001 <?php
00002
00003
00004
00005 class StaticPageRoute extends ExactMatchRoute {
00006 protected $org_page;
00007 protected $org_action;
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 public function __construct($prefix, $page, $postfix, $template, $controller, $action, $decorators = null) {
00020 $this->org_page = $template;
00021 $this->org_action = $action;
00022 $page_action = 'static_' . $page;
00023 parent::__construct($prefix . $page . $postfix, $controller, $page_action, $decorators);
00024 }
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 protected function invoke_action_func($controller, $funcname, $page_data) {
00036 $funcname = $this->get_action_func_name($this->org_action);
00037 $this->check_action_func($controller, $funcname);
00038 return $this->controller->$funcname($page_data, $this->org_page);
00039 }
00040 }