[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] todo/inc class.so.inc.php, 1.1.2.8.2.2 class.bo.inc.p
From: |
uid65887 |
Subject: |
[Phpgroupware-cvs] todo/inc class.so.inc.php, 1.1.2.8.2.2 class.bo.inc.php, 1.1.2.7.2.2 |
Date: |
Wed, 27 Apr 2005 09:37:23 -0000 |
Update of todo/inc
Modified Files:
Branch: Version-0_9_16-branch
class.so.inc.php lines: +17 -12
class.bo.inc.php lines: +19 -14
Log Message:
return id when adding a todo
====================================================
Index: todo/inc/class.so.inc.php
diff -u todo/inc/class.so.inc.php:1.1.2.8.2.1
todo/inc/class.so.inc.php:1.1.2.8.2.2
--- todo/inc/class.so.inc.php:1.1.2.8.2.1 Mon May 5 06:08:17 2003
+++ todo/inc/class.so.inc.php Wed Dec 24 00:40:16 2003
@@ -1,15 +1,19 @@
<?php
-
/**************************************************************************\
- * phpGroupWare - Todo list
*
- * http://www.phpgroupware.org
*
- * Written by Joseph Engo <address@hidden> *
- * Bettina Gille 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.
*
-
\**************************************************************************/
+
/*************************************************************************\
+ * phpGroupWare - Todo list
*
+ * http://www.phpgroupware.org
*
+ * This program is part of the GNU project, see http://www.gnu.org/
*
+ *
*
+ * Written by Joseph Engo <address@hidden> *
+ * Bettina Gille address@hidden *
+ * -----------------------------------------------
*
+ * Copyright 2000 - 2003 Free Software Foundation, Inc
*
+ *
*
+ * 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$ */
class so
@@ -264,6 +268,7 @@
$this->historylog->add('A',$todo_id,' ','');
$this->db->transaction_commit();
+ return $todo_id;
}
function find_subs($list_parents='', $list='')
====================================================
Index: todo/inc/class.bo.inc.php
diff -u todo/inc/class.bo.inc.php:1.1.2.7.2.1
todo/inc/class.bo.inc.php:1.1.2.7.2.2
--- todo/inc/class.bo.inc.php:1.1.2.7.2.1 Mon May 5 06:08:17 2003
+++ todo/inc/class.bo.inc.php Wed Dec 24 00:40:16 2003
@@ -1,15 +1,19 @@
<?php
-
/**************************************************************************\
- * phpGroupWare - Todo list
*
- * http://www.phpgroupware.org
*
- * Written by Joseph Engo <address@hidden> *
- * Bettina Gille 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.
*
-
\**************************************************************************/
+
/*************************************************************************\
+ * phpGroupWare - Todo list
*
+ * http://www.phpgroupware.org
*
+ * This program is part of the GNU project, see http://www.gnu.org/
*
+ *
*
+ * Written by Joseph Engo <address@hidden> *
+ * Bettina Gille address@hidden *
+ * -----------------------------------------------
*
+ * Copyright 2000 - 2003 Free Software Foundation, Inc
*
+ *
*
+ * 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$ */
class bo
@@ -363,13 +367,14 @@
if ($values['id'] != 0)
{
$this->sotodo->edit_todo($values);
+ $todo_id = $values['id'];
}
}
else
{
- $this->sotodo->add_todo($values);
+ $todo_id = $this->sotodo->add_todo($values);
}
- return True;
+ return $todo_id;
}
function select_todo_list($parent)
- Prev by Date:
[Phpgroupware-cvs] todo/inc class.uitodo.inc.php, 1.23 class.sotodo.inc.php, 1.16 class.botodo.inc.php, 1.17 class.ui.inc.php, 1.21 class.bo.inc.php, 1.12 class.so.inc.php, 1.12
- Next by Date:
[Phpgroupware-cvs] phpgwapi/inc class.ipc_manager.inc.php,1.1
- Previous by thread:
[Phpgroupware-cvs] todo/inc class.so.inc.php, 1.1.2.8.2.2 class.bo.inc.php, 1.1.2.7.2.2
- Next by thread:
[Phpgroupware-cvs] phpgwapi/inc class.ipc_.inc.php,1.1
- Index(es):