some more documentation updates

This commit is contained in:
Cornelius Weiß 2005-11-10 23:35:55 +00:00
parent a52d78d66b
commit 1315d99b88
10 changed files with 115 additions and 157 deletions

View File

@ -1,22 +1,17 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources * * eGroupWare - resources
* http://www.egroupware.org * *
* -------------------------------------------- * * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
* This program is free software; you can redistribute it and/or modify it * * @package resources
* under the terms of the GNU General Public License as published by the * * @link http://www.egroupware.org
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
* -------------------------------------------- *
\**************************************************************************/
/* $Id$ */
/** /**
* ACL business object for resources * ACL business object for resources
* *
* @package resources * @package resources
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class bo_acl class bo_acl
{ {
@ -64,7 +59,7 @@ class bo_acl
} }
} }
$this->save_sessiondata(); $this->save_sessiondata();
$this->cats = $this->egw_cats->return_array('all',$this->start,True,$this->query,$this->sort,'cat_name',True); $this->cats = $this->egw_cats->return_sorted_array(0,False);
} }
} }
@ -78,7 +73,7 @@ class bo_acl
*/ */
function get_cats($perm_type) function get_cats($perm_type)
{ {
$cats = $this->egw_cats->return_sorted_array(0,False,'','','',!$type); $cats = $this->egw_cats->return_sorted_array(0,False);
while (list(,$cat) = @each($cats)) while (list(,$cat) = @each($cats))
{ {
if($this->is_permitted($cat['id'],$perm_type)) if($this->is_permitted($cat['id'],$perm_type))

View File

@ -1,25 +1,20 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources - Resource Management System * * eGroupWare - resources
* http://www.egroupware.org * *
* Written by Lukas Weiss <wnz_gh05t@users.sourceforge.net> and * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* Cornelius Weiss <egw@von-und-zu-weiss.de> * * @package resources
* ----------------------------------------------- * * @link http://www.egroupware.org
* This program is free software; you can redistribute it and/or modify it * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* under the terms of the GNU General Public License as published by the * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
/* $Id$ */
/** /**
* General business object for resources * General business object for resources
* *
* @package resources * @package resources
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class bo_resources class bo_resources
{ {

View File

@ -1,25 +1,19 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources hooks * * eGroupWare - resources
* http://www.eGroupWare.org * * General hook object for resources
* Originally written by Ralf Becker <RalfBecker@outdoor-training.de> * * It encapsulats all the diffent hook methods
* Changes for resources by Cornelius Wei<EFBFBD><egw@von-und-zu-weiss.de> * *
* * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* ------------------------------------------------------- * * @package resources
* This program is free software; you can redistribute it and/or modify it * * @link http://www.egroupware.org
* under the terms of the GNU General Public License as published by the * * @version $Id$
* Free Software Foundation; either version 2 of the License, or (at your * */
* option) any later version. *
\**************************************************************************/
/* $Id$ */
/** /**
* General hook object for resources * General hook object for resources
* It encapsulats all the diffent hook methods * It encapsulats all the diffent hook methods
*
* @package resources * @package resources
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class resources_hooks class resources_hooks
{ {

View File

@ -1,24 +1,19 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - eTemplate Extension - Resource Select Widgets * * eGroupWare - eTemplate Extension - Resource Select Widgets
* http://www.egroupware.org * *
* Written by Ralf Becker <RalfBecker@outdoor-training.de> * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* -------------------------------------------- * * @package resources
* This program is free software; you can redistribute it and/or modify it * * @link http://www.egroupware.org
* under the terms of the GNU General Public License as published by the * * @author RalfBecker-AT-outdoor-training.de
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
/* $Id$ */
/** /**
* eTemplate Extension: select a resource * eTemplate Extension: select a resource
* *
* @package resources * @package resources
* @author RalfBecker-AT-outdoor-training.de */
* @license GPL
*/
class resources_select_widget class resources_select_widget
{ {
/** /**

View File

@ -1,17 +1,15 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources - Resource Management System * * eGroupWare - resources
* http://www.egroupware.org * *
* Written by Cornelius Weiss <egw@von-und-zu-weiss.de> * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* and Lukas Weiss <wnz_gh05t@users.sourceforge.net> * * @package resources
* ----------------------------------------------- * * @link http://www.egroupware.org
* This program is free software; you can redistribute it and/or modify it * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* under the terms of the GNU General Public License as published by the * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
/* $Id$ */
include_once(EGW_INCLUDE_ROOT.'/etemplate/inc/class.so_sql.inc.php'); include_once(EGW_INCLUDE_ROOT.'/etemplate/inc/class.so_sql.inc.php');
@ -19,9 +17,6 @@ include_once(EGW_INCLUDE_ROOT.'/etemplate/inc/class.so_sql.inc.php');
* General storage object for resources * General storage object for resources
* *
* @package resources * @package resources
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class so_resources extends so_sql class so_resources extends so_sql
{ {

View File

@ -1,22 +1,17 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources * * eGroupWare - resources
* http://www.egroupware.org * *
* -------------------------------------------- * * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
* This program is free software; you can redistribute it and/or modify it * * @package resources
* under the terms of the GNU General Public License as published by the * * @link http://www.egroupware.org
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
* -------------------------------------------- *
\**************************************************************************/
/* $Id$ */
/** /**
* ACL userinterface object for resources * ACL userinterface object for resources
* *
* @package resources * @package resources
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class ui_acl class ui_acl
{ {

View File

@ -1,25 +1,19 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources - Resource Management System * * eGroupWare - resources
* http://www.egroupware.org * *
* Written by Lukas Weiss <wnz_gh05t@users.sourceforge.net> and * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* Cornelius Weiss <egw@von-und-zu-weiss.de> * * @package resources
* ----------------------------------------------- * * @link http://www.egroupware.org
* This program is free software; you can redistribute it and/or modify it * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* under the terms of the GNU General Public License as published by the * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
/* $Id$ */
/** /**
* General userinterface object for resources * General userinterface object for resources
* *
* @package resources * @package resources
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
*/ */
class ui_resources class ui_resources
{ {

View File

@ -1,16 +1,14 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources - Resource Management System * * eGroupWare - resources
* http://www.egroupware.org * * http://www.egroupware.org
* Written by Lukas Weiss [ichLukas@gmx.net] and * *
* Cornelius Weiss <egw@von-und-zu-weiss.de> * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* ----------------------------------------------- * * @package resources
* This program is free software; you can redistribute it and/or modify it * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* under the terms of the GNU General Public License as published by the * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
$GLOBALS['egw_info']['flags'] = array( $GLOBALS['egw_info']['flags'] = array(
'currentapp' => 'resources', 'currentapp' => 'resources',

View File

@ -1,17 +1,14 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare - resources * * eGroupWare - resources
* http://www.egroupware.org * * http://www.egroupware.org
* * *
* Written by Cornelius Weiss [egw@von-und-zu-weiss.de] * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* ----------------------------------------------- * * @package resources
* This program is free software; you can redistribute it and/or modify it * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* under the terms of the GNU General Public License as published by the * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
* Free Software Foundation; either version 2 of the License, or (at your * * @version $Id$
* option) any later version. * */
\**************************************************************************/
/* $Id$*/
$setup_info['resources']['name'] = 'resources'; $setup_info['resources']['name'] = 'resources';
$setup_info['resources']['title'] = 'Resources'; $setup_info['resources']['title'] = 'Resources';

View File

@ -1,19 +1,19 @@
<?php <?php
/**************************************************************************\ /**
* eGroupWare SiteMgr - Web Content Management * * eGroupWare - resources
* http://www.egroupware.org * * http://www.egroupware.org
* -------------------------------------------- * *
* This program is free software; you can redistribute it and/or modify it * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* under the terms of the GNU General Public License as published by the * * @package resources
* Free Software Foundation; either version 2 of the License, or (at your * * @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* option) any later version. * * @author Lukas Weiss <wnz_gh05t@users.sourceforge.net>
\**************************************************************************/ * @version $Id$
*/
/* $Id$ */ require_once (EGW_INCLUDE_ROOT.'/etemplate/inc/class.sitemgr_module.inc.php');
require_once (EGW_INCLUDE_ROOT.'/etemplate/inc/class.sitemgr_module.inc.php');
class module_resources extends sitemgr_module class module_resources extends sitemgr_module
{ {
function module_resources() function module_resources()
{ {
$this->arguments = array(); $this->arguments = array();
@ -22,4 +22,4 @@ class module_resources extends sitemgr_module
$this->description = lang('This module displays the resources app'); $this->description = lang('This module displays the resources app');
$this->etemplate_method = 'resources.ui_resources.index'; $this->etemplate_method = 'resources.ui_resources.index';
} }
} }