commit 86bcb1fa9e538eee26baaed14de12824a60034a7
parent 90a89dccaa499255fa5e7f1a4463c3632cdca8f1
Author: dankert <devnull@localhost>
Date: Thu, 8 Oct 2009 23:23:34 +0200
Methode propView() verschoben.
Diffstat:
1 file changed, 50 insertions(+), 50 deletions(-)
diff --git a/actionClasses/PageAction.class.php b/actionClasses/PageAction.class.php
@@ -324,6 +324,56 @@ class PageAction extends ObjectAction
/**
+ * Die Eigenschaften der Seite anzeigen
+ */
+ function propView()
+ {
+ $this->setTemplateVar('id',$this->page->objectid);
+
+ $this->page->public = true;
+ $this->page->load();
+ $this->page->full_filename();
+
+ if ( $this->page->filename == $this->page->objectid )
+ $this->page->filename = '';
+
+ $this->setTemplateVars( $this->page->getProperties() );
+
+ if ( $this->userIsAdmin() )
+ {
+ $this->setTemplateVar('template_url',Html::url('main','template',$this->page->templateid));
+ }
+
+ $template = new Template( $this->page->templateid );
+ $template->load();
+ $this->setTemplateVar('template_name',$template->name);
+
+ // Alle Ordner ermitteln
+// $this->setTemplateVar('act_folderobjectid',$this->page->parentid);
+//
+// $folders = array();
+// $folder = new Folder( $this->page->parentid );
+
+// foreach( $folder->getOtherFolders() as $oid )
+// {
+// $f = new Folder( $oid );
+// $folders[$oid] = implode( FILE_SEP,$f->parentObjectNames(true,true) );
+// }
+// asort( $folders );
+// $this->setTemplateVar('folder',$folders);
+
+ $templates = Array();
+ foreach( Template::getAll() as $id=>$name )
+ {
+ if ( $id != $this->page->templateid )
+ $templates[$id]=$name;
+ }
+ $this->setTemplateVar('templates',$templates);
+ }
+
+
+
+ /**
* Austauschen der Vorlage vorbereiten
*
* Es wird ein Formualr erzeugt, in dem der Benutzer auswaehlen kann, welche Elemente
@@ -613,56 +663,6 @@ class PageAction extends ObjectAction
- /**
- * Die Eigenschaften der Seite anzeigen
- */
- function propView()
- {
- $this->setTemplateVar('id',$this->page->objectid);
-
- $this->page->public = true;
- $this->page->load();
- $this->page->full_filename();
-
- if ( $this->page->filename == $this->page->objectid )
- $this->page->filename = '';
-
- $this->setTemplateVars( $this->page->getProperties() );
-
- if ( $this->userIsAdmin() )
- {
- $this->setTemplateVar('template_url',Html::url('main','template',$this->page->templateid));
- }
-
- $template = new Template( $this->page->templateid );
- $template->load();
- $this->setTemplateVar('template_name',$template->name);
-
- // Alle Ordner ermitteln
-// $this->setTemplateVar('act_folderobjectid',$this->page->parentid);
-//
-// $folders = array();
-// $folder = new Folder( $this->page->parentid );
-
-// foreach( $folder->getOtherFolders() as $oid )
-// {
-// $f = new Folder( $oid );
-// $folders[$oid] = implode( FILE_SEP,$f->parentObjectNames(true,true) );
-// }
-// asort( $folders );
-// $this->setTemplateVar('folder',$folders);
-
- $templates = Array();
- foreach( Template::getAll() as $id=>$name )
- {
- if ( $id != $this->page->templateid )
- $templates[$id]=$name;
- }
- $this->setTemplateVar('templates',$templates);
- }
-
-
-
/**
* Die Eigenschaften der Seite anzeigen