commit 54db670ad6c6cb879422be77ec21c4802b734757
parent 1103930c2fbf76197ace71678fac74376bb101eb
Author: Jan Dankert <devnull@localhost>
Date: Sun, 6 Nov 2011 21:31:11 +0100
Trennung von View (POST) und Action (GET).
Diffstat:
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/action/StartAction.class.php b/action/StartAction.class.php
@@ -349,9 +349,23 @@ class StartAction extends Action
/**
+ * Setzt die neue Projekt-Id und lädt die Workbench neu.
+ *
+ */
+ public function projectmenuAction() {
+
+ //Session::setProject( $this->getRequestId() );
+
+ $this->evaluateRequestVars( array('projectid'=>$this->getRequestId()) );
+ Session::set('perspective','normal');
+ $this->refresh();
+ }
+
+
+ /**
* Erzeugt ein Projekt-Auswahlmenue.
*/
- function projectmenu()
+ function projectmenuView()
{
$user = Session::getUser();
@@ -373,7 +387,7 @@ class StartAction extends Action
foreach( $projects as $id=>$name )
{
$p = array();
- $p['url' ] = Html::url('tree','load',0,array('projectid'=>$id,'target'=>'tree'));
+ $p['url' ] = Html::url('start','project',$id);
$p['name'] = $name;
$p['id' ] = $id;
@@ -824,9 +838,11 @@ class StartAction extends Action
/**
* Ausw�hlen der Administration.
*/
- function administration()
+ function administrationAction()
{
- Session::setProject( new Project(-1) );
+ Session::setProject( new Project(-1) );
+ Session::set('perspective','administration');
+ $this->refresh();
}
@@ -939,7 +955,7 @@ class StartAction extends Action
*
* @param Array $add
*/
- function evaluateRequestVars( $add = array() )
+ private function evaluateRequestVars( $add = array() )
{
global $REQ;
$vars = $REQ + $add;
@@ -1658,7 +1674,8 @@ class StartAction extends Action
// 5.1.0 > PHP >= 4.3.3
}
}
-
+
+
}
diff --git a/action/StartAction.ini.php b/action/StartAction.ini.php
@@ -12,10 +12,12 @@ direct=true
[administration]
menu=menu
+write=true
[projectmenu]
menu=menu
clear=tree
+write=true
[menu]
menu=projectmenu,applications