openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d8d60ab19dfac17b14f106941a41b4687d3b3d2b
parent eb7b8b6da04dbf1156e3cfe17f1ca74ca1780613
Author: dankert <devnull@localhost>
Date:   Mon, 27 Dec 2010 23:43:18 +0100

Nach Login die Views aktualisieren.

Diffstat:
actionClasses/Action.class.php | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php @@ -740,6 +740,21 @@ class Action return !$this->isEditable() || $this->getRequestVar('mode')=='edit' || isset($_COOKIE['or_always_edit']) || (isset($this->templateVars) && $this->templateVars['mode']=='edit'); } + + + + /** + * + * @param $viewName + * @param $viewAction + * @param $viewSubaction + */ + function updateView( $viewName, $viewAction,$viewSubaction ) + { + global $views; + if ( array_key_exists($viewName,$views) ) + $views[$viewName] = array('action'=>$viewAction,'subaction'=>$viewSubaction); + } } ?> \ No newline at end of file