/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/controller/WebMVC.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/controller/WebMVC.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Sat Mar 1 17:02:09 2003 UTC revision 1.3 by joko, Sat Mar 1 22:43:56 2003 UTC
# Line 15  Line 15 
15   * $Id$   * $Id$
16   *   *
17   * $Log$   * $Log$
18     * Revision 1.3  2003/03/01 22:43:56  joko
19     * propagating options properly
20     *
21     * Revision 1.2  2003/03/01 21:19:02  joko
22     * now actually does something via '->handle'
23     * established static component registry here
24     *
25   * Revision 1.1  2003/03/01 17:02:09  joko   * Revision 1.1  2003/03/01 17:02:09  joko
26   * + initial commit, inheriting from DesignPattern::MVC   * + initial commit, inheriting from DesignPattern::MVC
27   *   *
# Line 73  class WebMVC extends DesignPattern_MVC { Line 80  class WebMVC extends DesignPattern_MVC {
80    function user_setup() {    function user_setup() {
81      $this->_abstract_method('user_setup');      $this->_abstract_method('user_setup');
82    }    }
83      
84      function handle() {
85    
86        // trace
87          print "MVC - performed result: " . Dumper($this->_performed_result);
88          //exit;
89    
90        if (!sizeof($this->_performed_result)) {
91          user_error("MVC failed - performed result was empty.");
92        }
93        
94        // encapsulation here - no passthrough!!!
95        $result = array(
96          'view' => $this->_performed_result[view],
97          'options' => $this->_performed_result[options],
98        );
99        
100        return $result;
101      }
102      
103    
104      function &getStaticRegistryDatabase() {
105        $registry = array (
106          '123435-54554-435435-435345' => array(
107            'name' => 'Page::Overview',
108            'version' => null,
109          ),
110          '456-54554-435435-435345' => array(
111            'name' => 'Page::Jobs',
112            'version' => null,
113          ),
114          '678-54554-435435-435345' => array(
115            'name' => 'Page::DataBrowser',
116            'version' => null,
117          ),
118          '555-54554-435435-435345' => array(
119            'name' => 'Page::NavigationHistory',
120            'version' => null,
121          ),
122        );
123        return $registry;
124      }
125    
126    
127        
128    /*    /*

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed