Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12823/modules/filemanager
Added Files:
class.module_filemanager.php
Log Message:
several changes
--- NEW FILE: class.module_filemanager.php ---
<?php
/**
* The filemanager-module
*
* This module is based on the package PEAR::LiveUser.
*
* <b>License</b>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @author Martin Jahn <mj...@us...>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @copyright Copyright (c) 2004, Martin Jahn
* @version $Id: class.module_filemanager.php,v 1.1 2004/06/04 11:11:57 mjahn Exp $
* @package admin4phpCMS
* @subpackage module_filemanager
**/
/*
* $Log: class.module_filemanager.php,v $
* Revision 1.1 2004/06/04 11:11:57 mjahn
* several changes
*
*/
/**
* Filemanager-class for administrative work in the filesystem
*
* @package admin4phpCMS
* @subpackage module_filemanager
* @todo Get the class working correctly
**/
class module_filemanager extends module {
function init () {
// connect to actions
$this->_registerAction ('doParseParam', 'parseParam');
$this->_registerAction ('doProcess', 'process');
$this->_registerAction ('doParseMenuMain', 'getMenuMain');
$this->_registerAction ('doParseStatusbar', 'getContentBar');
$this->_registerAction ('doParseMenuSub', 'getMenuSub');
$this->_registerAction ('doParseContent', 'getContent');
}
function parseParam (&$actiondata) {
$this->display = (isset ($actiondata['request']['moduleid']) && $actiondata['request']['moduleid'] == 'filemanager');
$this->action = '';
if (isset ($actiondata['request']['action'])) {
$this->action = $actiondata['request']['action'];
}
}
function process (&$actiondata) {
}
function getMenuMain (&$actiondata) {
$root = $actiondata['_root'];
$actiondata = array ('_type'=>'menu_main_entry', '_root'=>$root, 'name'=>'Dateimanager', 'module'=>'filemanager', '_id'=>'filemanager', '_root'=>'mainmenu', 'id'=>'', 'class'=>'', 'params'=>'');
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
}
function getMenuSub (&$actiondata) {
if (!$this->display) {
return true;
}
$root = $actiondata['_root'];
$actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Dateimanager', 'module'=>'filemanager', '_id'=>'files', 'id'=>'', 'class'=>'', 'param'=>'', 'action'=>'');
if ($this->action == '') {
$actiondata['id'] = 'current';
}
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
$actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Hochladen', 'module'=>'filemanager', '_id'=>'uploads', 'action'=>'upload', 'id'=>'', 'class'=>'', 'params'=>'');
if ($this->action == 'upload') {
$actiondata['id'] = 'current';
}
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
$actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Backups', 'module'=>'filemanager', '_id'=>'backups', 'action'=>'backup', 'id'=>'', 'class'=>'', 'params'=>'');
if ($this->action == 'backup') {
$actiondata['id'] = 'current';
}
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
$actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Editor', 'module'=>'filemanager', '_id'=>'editor', 'action'=>'editor', 'id'=>'', 'class'=>'', 'params'=>'');
if ($this->action == 'editor') {
$actiondata['id'] = 'current';
}
$this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata);
}
function getContent (&$actiondata) {
}
function getContentBar (&$actiondata) {
}
}
?>
|