[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.i
From: |
powerstat |
Subject: |
[Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4 |
Date: |
Tue, 10 May 2005 15:18:00 +0200 |
Update of addressbook/inc
Modified Files:
Branch: MAIN
hook_manual.inc.php lines: +11 -12
hook_admin.inc.php lines: +12 -14
hook_add_def_pref.inc.php lines: +10 -0
hook_deleteaccount.inc.php lines: +10 -12
hook_preferences.inc.php lines: +11 -12
hook_addressbook_add_def_acl.inc.php lines: +11 -2
functions.inc.php lines: +23 -15
hook_sidebox_menu.inc.php lines: +10 -0
hook_home.inc.php lines: +9 -11
hook_notifywindow.inc.php lines: +9 -11
hook_config_validate.inc.php lines: +15 -12
hook_help.inc.php lines: +14 -12
Log Message:
Added phpdocs
====================================================
Index: addressbook/inc/hook_manual.inc.php
diff -u addressbook/inc/hook_manual.inc.php:1.6
addressbook/inc/hook_manual.inc.php:1.7
--- addressbook/inc/hook_manual.inc.php:1.6 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_manual.inc.php Tue May 10 13:18:09 2005
@@ -1,16 +1,15 @@
<?php
- /**************************************************************************\
- * phpGroupWare - Calendar Holidays *
- * http://www.phpgroupware.org *
- * Written by Mark Peters <address@hidden> *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
-
- /* $Id$ */
+ /**
+ * Addressbook - Manual
+ *
+ * @author Mark Peters <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ * @internal $Source$
+ */
// Only Modify the $file variable.....
$file = Array();
====================================================
Index: addressbook/inc/hook_admin.inc.php
diff -u addressbook/inc/hook_admin.inc.php:1.15
addressbook/inc/hook_admin.inc.php:1.16
--- addressbook/inc/hook_admin.inc.php:1.15 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_admin.inc.php Tue May 10 13:18:09 2005
@@ -1,17 +1,15 @@
<?php
-
/**************************************************************************\
- * phpGroupWare
*
- * http://www.phpgroupware.org
*
- * Written by Joseph Engo <address@hidden> *
- * --------------------------------------------
*
- * 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.
*
-
\**************************************************************************/
-
- // $Id$
- // $Source$
+ /**
+ * Addressbook - Hook for preferences
+ *
+ * @author Joseph Engo <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ * @internal $Source$
+ */
// Only Modify the $file and $title variables.....
$title = $appname;
@@ -24,6 +22,6 @@
'Location Manager' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uicatalog_contact_addr_type.view'),
'Notes Types Manager' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uicatalog_contact_note_type.view')
);
- //Do not modify below this line
+ // Do not modify below this line
display_section($appname,$title,$file);
?>
====================================================
Index: addressbook/inc/hook_add_def_pref.inc.php
diff -u addressbook/inc/hook_add_def_pref.inc.php:1.3
addressbook/inc/hook_add_def_pref.inc.php:1.4
--- addressbook/inc/hook_add_def_pref.inc.php:1.3 Mon Sep 24 16:43:55 2001
+++ addressbook/inc/hook_add_def_pref.inc.php Tue May 10 13:18:09 2005
@@ -1,4 +1,14 @@
<?php
+ /**
+ * Addressbook - Hook for preferences
+ *
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
+
$GLOBALS['pref']->change('addressbook','company','addressbook_True');
$GLOBALS['pref']->change('addressbook','lastname','addressbook_True');
$GLOBALS['pref']->change('addressbook','firstname','addressbook_True');
====================================================
Index: addressbook/inc/hook_deleteaccount.inc.php
diff -u addressbook/inc/hook_deleteaccount.inc.php:1.6
addressbook/inc/hook_deleteaccount.inc.php:1.7
--- addressbook/inc/hook_deleteaccount.inc.php:1.6 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_deleteaccount.inc.php Tue May 10 13:18:09 2005
@@ -1,16 +1,14 @@
<?php
- /**************************************************************************\
- * phpGroupWare *
- * http://www.phpgroupware.org *
- * Written by Joseph Engo <address@hidden> *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
-
- /* $Id$ */
+ /**
+ * Addressbook - Hook for deleting an account
+ *
+ * @author Joseph Engo <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
$contacts = CreateObject('phpgwapi.contacts');
====================================================
Index: addressbook/inc/hook_preferences.inc.php
diff -u addressbook/inc/hook_preferences.inc.php:1.22
addressbook/inc/hook_preferences.inc.php:1.23
--- addressbook/inc/hook_preferences.inc.php:1.22 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_preferences.inc.php Tue May 10 13:18:09 2005
@@ -1,16 +1,15 @@
<?php
- /**************************************************************************\
- * phpGroupWare *
- * http://www.phpgroupware.org *
- * Written by Joseph Engo <address@hidden> *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
+ /**
+ * Addressbook - Hook for preferences
+ *
+ * @author Joseph Engo <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
- /* $Id$ */
{
// Only Modify the $file and $title variables.....
$title = $appname;
@@ -19,7 +18,7 @@
'Grant Access' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname),
'Edit Categories' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app='.$appname
. '&cats_level=True&global_cats=True')
);
-//Do not modify below this line
+// Do not modify below this line
display_section($appname,$title,$file);
}
?>
====================================================
Index: addressbook/inc/hook_addressbook_add_def_acl.inc.php
diff -u addressbook/inc/hook_addressbook_add_def_acl.inc.php:1.2
addressbook/inc/hook_addressbook_add_def_acl.inc.php:1.3
--- addressbook/inc/hook_addressbook_add_def_acl.inc.php:1.2 Mon Feb 19
12:25:52 2001
+++ addressbook/inc/hook_addressbook_add_def_acl.inc.php Tue May 10
13:18:09 2005
@@ -1,7 +1,16 @@
<?php
+ /**
+ * Addressbook - Hook for acls
+ *
+ * Add default acl to allow the new user to access their addressbook
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
+
global $acl,$account_id;
- // Add default acl to allow the new user to access their
- // addressbook
// This file is not really needed or used at this time
$acl->add('addressbook','u_'.$account_id,1);
?>
====================================================
Index: addressbook/inc/functions.inc.php
diff -u addressbook/inc/functions.inc.php:1.103
addressbook/inc/functions.inc.php:1.104
--- addressbook/inc/functions.inc.php:1.103 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/functions.inc.php Tue May 10 13:18:09 2005
@@ -1,22 +1,30 @@
<?php
- /**************************************************************************\
- * phpGroupWare - addressbook *
- * http://www.phpgroupware.org *
- * Written by Joseph Engo <address@hidden> *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
-
- /* $Id$ */
-
+ /**
+ * Addressbook
+ *
+ * @author Joseph Engo <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @version $Id$
+ */
+
+
+ /**
+ * Create a HTML selectbox
+ *
+ * @param string $name Name for select box
+ * @param array $list Key/value array with options for selectbox
+ * @param string $id Key for preselected option
+ * @param boolean $default Add "please select" as first option when true
+ * @param boolean $java Unused
+ * @return string String with HTML code for selection box
+ */
function formatted_list($name,$list,$id='',$default=False,$java=False)
{
if ($java)
{
- $jselect = ' onChange="this.form.submit();"';
+ $jselect = ' onchange="this.form.submit();"';
}
$select = "\n" .'<select name="' . $name . '"' . $jselect .
">\n";
@@ -29,7 +37,7 @@
$select .= '<option value="' . $key . '"';
if ($key == $id && $id != '')
{
- $select .= ' selected';
+ $select .= ' selected="selected"';
}
$select .= '>' . $val . '</option>'."\n";
}
====================================================
Index: addressbook/inc/hook_sidebox_menu.inc.php
diff -u addressbook/inc/hook_sidebox_menu.inc.php:1.4
addressbook/inc/hook_sidebox_menu.inc.php:1.5
--- addressbook/inc/hook_sidebox_menu.inc.php:1.4 Mon Apr 4 20:24:44 2005
+++ addressbook/inc/hook_sidebox_menu.inc.php Tue May 10 13:18:09 2005
@@ -1,4 +1,14 @@
<?php
+ /**
+ * Addressbook - Hook for sidebox menu
+ *
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
+
$menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '.
lang('Menu');
$file = Array(
====================================================
Index: addressbook/inc/hook_home.inc.php
diff -u addressbook/inc/hook_home.inc.php:1.23
addressbook/inc/hook_home.inc.php:1.24
--- addressbook/inc/hook_home.inc.php:1.23 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_home.inc.php Tue May 10 13:18:09 2005
@@ -1,15 +1,13 @@
<?php
- /**************************************************************************\
- * phpGroupWare - E-Mail *
- * http://www.phpgroupware.org *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
-
- /* $Id$ */
+ /**
+ * Addressbook - Hook for preferences
+ *
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
/* TODO Update for new contacts back end
$d1 = strtolower(substr(PHPGW_APP_INC,0,3));
====================================================
Index: addressbook/inc/hook_notifywindow.inc.php
diff -u addressbook/inc/hook_notifywindow.inc.php:1.8
addressbook/inc/hook_notifywindow.inc.php:1.9
--- addressbook/inc/hook_notifywindow.inc.php:1.8 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_notifywindow.inc.php Tue May 10 13:18:09 2005
@@ -1,15 +1,13 @@
<?php
- /**************************************************************************\
- * phpGroupWare - Addressbook *
- * http://www.phpgroupware.org *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
-
- /* $Id$ */
+ /**
+ * Addressbook - Hook for notify window
+ *
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
$d1 = strtolower(substr(PHPGW_APP_INC,0,3));
if($d1 == 'htt' || $d1 == 'ftp' )
====================================================
Index: addressbook/inc/hook_config_validate.inc.php
diff -u addressbook/inc/hook_config_validate.inc.php:1.2
addressbook/inc/hook_config_validate.inc.php:1.3
--- addressbook/inc/hook_config_validate.inc.php:1.2 Fri Dec 31 04:55:24 2004
+++ addressbook/inc/hook_config_validate.inc.php Tue May 10 13:18:09 2005
@@ -1,16 +1,15 @@
<?php
- /**************************************************************************\
- * phpGroupWare *
- * http://www.phpgroupware.org *
- * Written by Mark Peters <address@hidden> *
- * -------------------------------------------- *
- * 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. *
- \**************************************************************************/
+ /**
+ * Addressbook - Hook for configuration validation
+ *
+ * @author Mark Peters <address@hidden>
+ * @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
- /* $Id$ */
/*
Set a global flag to indicate this file was found by admin/config.php.
@@ -18,7 +17,11 @@
*/
$GLOBALS['phpgw_info']['server']['found_validation_hook'] = True;
- /* Check a specific setting. Name must match the setting. */
+ /**
+ * Check a specific setting. Name must match the setting.
+ *
+ * @param string $value
+ */
function ldap_contact_context($value='')
{
if($value == $GLOBALS['phpgw_info']['server']['ldap_context'])
====================================================
Index: addressbook/inc/hook_help.inc.php
diff -u addressbook/inc/hook_help.inc.php:1.3
addressbook/inc/hook_help.inc.php:1.4
--- addressbook/inc/hook_help.inc.php:1.3 Mon Dec 23 00:56:31 2002
+++ addressbook/inc/hook_help.inc.php Tue May 10 13:18:09 2005
@@ -1,16 +1,18 @@
<?php
-
/**************************************************************************\
- * phpGroupWare - Addressbook hook_help
*
- * http://www.phpgroupware.org
*
- * --------------------------------------------
*
- * 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.
*
-
\**************************************************************************/
- /* $Id$ */
-
- include(PHPGW_SERVER_ROOT.'/'.'addressbook'.'/setup/setup.inc.php');
+ /**
+ * Addressbook - Hook for manual
+ *
+ * @copyright Copyright (C) 2000-2002,2005 Free Software Foundation,
Inc. http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @package addressbook
+ * @subpackage hooks
+ * @version $Id$
+ */
+
+ /**
+ * Include addressbooks setup
+ */
+ include(PHPGW_SERVER_ROOT . '/addressbook/setup/setup.inc.php');
$GLOBALS['phpgw']->help->set_params(array('app_name' =>
'addressbook',
'title' => lang('addressbook'),
- [Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4, powerstat, 2005/05/16
- [Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4, powerstat, 2005/05/16
- [Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4, powerstat, 2005/05/17
- [Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4,
powerstat <=
- Prev by Date:
[Phpgroupware-cvs] calendar/templates/idots day.tpl,1.2
- Next by Date:
[Phpgroupware-cvs] email/inc class.mail_dcom_pop3.inc.php, 1.15 class.mail_dcom_imap_sock.inc.php, 1.19 class.mail_dcom_pop3_sock.inc.php, 1.24 class.mail_dcom_nntp_sock.inc.php, 1.9 class.mail_dcom_nntp.inc.php, 1.8 class.mail_dcom_base_sock.inc.php, 1.29
- Previous by thread:
[Phpgroupware-cvs] addressbook/inc hook_manual.inc.php, 1.7 hook_admin.inc.php, 1.16 hook_add_def_pref.inc.php, 1.4 hook_deleteaccount.inc.php, 1.7 hook_preferences.inc.php, 1.23 hook_addressbook_add_def_acl.inc.php, 1.3 functions.inc.php, 1.104 hook_sidebox_menu.inc.php, 1.5 hook_home.inc.php, 1.24 hook_notifywindow.inc.php, 1.9 hook_config_validate.inc.php, 1.3 hook_help.inc.php, 1.4
- Next by thread:
[Phpgroupware-cvs] calendar/templates/idots day.tpl,1.2
- Index(es):