--- 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 22:43:56 1.3
@@ -12,9 +12,16 @@
*/
/**
- * $Id: WebMVC.inc,v 1.1 2003/03/01 17:02:09 joko Exp $
+ * $Id: WebMVC.inc,v 1.3 2003/03/01 22:43:56 joko Exp $
*
* $Log: WebMVC.inc,v $
+ * Revision 1.3 2003/03/01 22:43:56 joko
+ * propagating options properly
+ *
+ * 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 +80,49 @@
function user_setup() {
$this->_abstract_method('user_setup');
}
+
+ function handle() {
+
+ // trace
+ 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],
+ 'options' => $this->_performed_result[options],
+ );
+
+ 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;
+ }
+
/*