commit 7c7304f5ea773673b445ba3fd56aa8549141759b
parent e5f4be887f93a0a2af0f72b3c849b934154601f7
Author: dankert <devnull@localhost>
Date: Sun, 2 May 2004 14:00:26 +0200
Funktion release() zum freigeben von Inhalten
Diffstat:
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/actionClasses/PageelementAction.class.php b/actionClasses/PageelementAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.3 2004-05-02 11:40:00 dankert
+// Revision 1.4 2004-05-02 12:00:26 dankert
+// Funktion release() zum freigeben von Inhalten
+//
+// Revision 1.3 2004/05/02 11:40:00 dankert
// Freigabestatus der Seiteninhalte verarbeiten
//
// Revision 1.2 2004/04/30 20:52:11 dankert
@@ -228,6 +231,24 @@ class PageelementAction extends Action
/**
+ * Freigeben eines Inhaltes
+ */
+ function release()
+ {
+ $this->value->languageid = $this->getSessionVar('languageid');
+ $this->value->objectid = $this->getSessionVar('objectid');
+ $this->value->pageid = Page::getPageIdFromObjectId( $this->getSessionVar('objectid') );
+ $this->value->element = new Element( $this->getSessionVar('elementid') );
+
+ $this->value->valueid = $this->getRequestVar('valueid');
+ $this->value->release();
+
+ // Versionen anzeigen
+ $this->callSubAction('archive');
+ }
+
+
+ /**
* Erzeugt eine Liste aller Versionsstände zu diesem Inhalt
*/
function archive()