[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.solink.inc.php,1.5,1.6
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.solink.inc.php,1.5,1.6 |
Date: |
Tue, 15 Oct 2002 20:22:06 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv23172
Modified Files:
class.solink.inc.php
Log Message:
get_links returns for a given $only_app only an array of ids not the whole links
Index: class.solink.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.solink.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.solink.inc.php 9 Oct 2002 00:37:00 -0000 1.5
--- class.solink.inc.php 16 Oct 2002 00:22:04 -0000 1.6
***************
*** 99,103 ****
@param $only_app if set return only links from $only_app (eg.
only addressbook-entries) or NOT from if $only_app[0]=='!'
@param $order defaults to newest links first
! @result array of links or empty array if no matching links found
*/
function get_links( $app,$id,$only_app='',$order='link_lastmod
DESC' )
--- 99,103 ----
@param $only_app if set return only links from $only_app (eg.
only addressbook-entries) or NOT from if $only_app[0]=='!'
@param $order defaults to newest links first
! @result array of links (only_app: ids) or empty array if no
matching links found
*/
function get_links( $app,$id,$only_app='',$order='link_lastmod
DESC' )
***************
*** 124,128 ****
$row = $this->db->Record;
! if ($row['link_app1'] == $app AND $row['link_id1'] == $id)
{
$link = array(
--- 124,128 ----
$row = $this->db->Record;
! if ($row['link_app1'] == $app AND
$row['link_id1'] == $id)
{
$link = array(
***************
*** 148,152 ****
$link['link_id'] = $row['link_id'];
! $links[] = $link;
}
return $links;
--- 148,152 ----
$link['link_id'] = $row['link_id'];
! $links[] = $only_app && !$not_only ?
$link['id'] : $link;
}
return $links;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.solink.inc.php,1.5,1.6,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.44,1.45
- Next by Date:
[Phpgroupware-cvs] CVS: infolog/inc class.boinfolog.inc.php,1.24,1.25 class.soinfolog.inc.php,1.15,1.16 class.uiinfolog.inc.php,1.49,1.50 hook_addressbook_view.inc.php,1.7,1.8
- Previous by thread:
[Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.44,1.45
- Next by thread:
[Phpgroupware-cvs] CVS: infolog/inc class.boinfolog.inc.php,1.24,1.25 class.soinfolog.inc.php,1.15,1.16 class.uiinfolog.inc.php,1.49,1.50 hook_addressbook_view.inc.php,1.7,1.8
- Index(es):