--- nfo/php/libs/com.newsblob.phphtmllib/controller/WebMVC.inc 2003/03/01 17:02:09 1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/controller/WebMVC.inc 2003/03/01 21:19:02 1.2 @@ -12,9 +12,13 @@ */ /** - * $Id: WebMVC.inc,v 1.1 2003/03/01 17:02:09 joko Exp $ + * $Id: WebMVC.inc,v 1.2 2003/03/01 21:19:02 joko Exp $ * * $Log: WebMVC.inc,v $ + * Revision 1.2 2003/03/01 21:19:02 joko + * now actually does something via '->handle' + * established static component registry here + * * Revision 1.1 2003/03/01 17:02:09 joko * + initial commit, inheriting from DesignPattern::MVC * @@ -73,6 +77,45 @@ function user_setup() { $this->_abstract_method('user_setup'); } + + function handle() { + print "MVC - performed result: " . Dumper($this->_performed_result); + //exit; + if (!sizeof($this->_performed_result)) { + user_error("MVC failed - performed result was empty."); + } + + // encapsulation here - no passthrough!!! + $result = array( + 'view' => $this->_performed_result[view], + ); + + return $result; + } + + + function &getStaticRegistryDatabase() { + $registry = array ( + '123435-54554-435435-435345' => array( + 'name' => 'Page::Overview', + 'version' => null, + ), + '456-54554-435435-435345' => array( + 'name' => 'Page::Jobs', + 'version' => null, + ), + '678-54554-435435-435345' => array( + 'name' => 'Page::DataBrowser', + 'version' => null, + ), + '555-54554-435435-435345' => array( + 'name' => 'Page::NavigationHistory', + 'version' => null, + ), + ); + return $registry; + } + /*