[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.83,1.84
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.83,1.84 |
Date: |
Tue, 02 Jul 2002 20:55:50 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv32524
Modified Files:
class.categories.inc.php
Log Message:
update global_cats selection
Index: class.categories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.categories.inc.php,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -r1.83 -r1.84
*** class.categories.inc.php 29 Jun 2002 12:24:11 -0000 1.83
--- class.categories.inc.php 3 Jul 2002 00:55:47 -0000 1.84
***************
*** 113,123 ****
@param $sort string sort order, either defaults to 'ASC'
@param $order order by
@result $cats array
*/
! function return_array($type,$start,$limit = True,$query =
'',$sort = '',$order = '',$public = False, $parent_id = '')
{
! if ($public)
{
! $public_cats = " OR cat_appname='phpgw' OR
(cat_access='public' AND cat_appname='".$this->app_name."')";
}
--- 113,124 ----
@param $sort string sort order, either defaults to 'ASC'
@param $order order by
+ @param $globals True or False, includes the global phpgroupware
categories or not
@result $cats array
*/
! function return_array($type,$start,$limit = True,$query =
'',$sort = '',$order = '',$globals = False, $parent_id = '')
{
! if ($globals)
{
! $global_cats = " OR cat_appname='phpgw'";
}
***************
*** 170,174 ****
}
! $sql = "SELECT * from phpgw_categories WHERE
(cat_appname='" . $this->app_name . "' AND" . $grant_cats . $public_cats . ")"
. $parent_filter . $querymethod . $filter;
--- 171,175 ----
}
! $sql = "SELECT * from phpgw_categories WHERE
(cat_appname='" . $this->app_name . "' AND" . $grant_cats . $global_cats . ")"
. $parent_filter . $querymethod . $filter;
***************
*** 203,211 ****
! function return_sorted_array($start,$limit = True,$query =
'',$sort = '',$order = '',$public = False)
{
! if ($public)
{
! $public_cats = " OR cat_appname='phpgw' OR
(cat_access='public' AND cat_appname='".$this->app_name."')";
}
--- 204,212 ----
! function return_sorted_array($start,$limit = True,$query =
'',$sort = '',$order = '',$globals = False)
{
! if ($globals)
{
! $global_cats = " OR cat_appname='phpgw'";
}
***************
*** 251,255 ****
}
! $sql = "SELECT * from phpgw_categories WHERE
(cat_appname='" . $this->app_name . "' AND" . $grant_cats . $public_cats . ")"
. $querymethod;
--- 252,256 ----
}
! $sql = "SELECT * from phpgw_categories WHERE
(cat_appname='" . $this->app_name . "' AND" . $grant_cats . $global_cats . ")"
. $querymethod;
***************
*** 369,380 ****
@param $type string - subs or mains
@param $selected - cat_id or array with cat_id values
@result $s array - populated with categories
*/
! function formatted_list($format,$type = 'all',$selected =
'',$public = False,$site_link = 'site')
{
! return
$this->formated_list($format,$type,$selected,$public,$site_link);
}
! function formated_list($format,$type = 'all',$selected =
'',$public = False,$site_link = 'site')
{
if(is_array($format))
--- 370,382 ----
@param $type string - subs or mains
@param $selected - cat_id or array with cat_id values
+ @param $globals True or False, includes the global phpgroupware
categories or not
@result $s array - populated with categories
*/
! function formatted_list($format,$type = 'all',$selected =
'',$globals = False,$site_link = 'site')
{
! return
$this->formated_list($format,$type,$selected,$globals,$site_link);
}
! function formated_list($format,$type = 'all',$selected =
'',$globals = False,$site_link = 'site')
{
if(is_array($format))
***************
*** 383,387 ****
$type =
(isset($format['type'])?$format['type']:'all');
$selected =
(isset($format['selected'])?$format['selected']:'');
! $public =
(isset($format['public'])?$format['public']:False);
$site_link =
(isset($format['site_link'])?$format['site_link']:'site');
settype($format,'string');
--- 385,389 ----
$type =
(isset($format['type'])?$format['type']:'all');
$selected =
(isset($format['selected'])?$format['selected']:'');
! $globals =
(isset($format['globals'])?$format['globals']:False);
$site_link =
(isset($format['site_link'])?$format['site_link']:'site');
settype($format,'string');
***************
*** 397,405 ****
if ($type != 'all')
{
! $cats =
$this->return_array($type,$start,False,$query,$sort,$order,$public);
}
else
{
! $cats =
$this->return_sorted_array($start,False,$query,$sort,$order,$public);
}
--- 399,407 ----
if ($type != 'all')
{
! $cats =
$this->return_array($type,$start,False,$query,$sort,$order,$globals);
}
else
{
! $cats =
$this->return_sorted_array($start,False,$query,$sort,$order,$globals);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.83,1.84,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: developer_tools/inc class.bolangfile.inc.php,1.9,1.10 class.solangfile.inc.php,1.11,1.12 class.uilangfile.inc.php,1.11,1.12
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.74.2.9,1.74.2.10
- Previous by thread:
[Phpgroupware-cvs] CVS: developer_tools/inc class.bolangfile.inc.php,1.9,1.10 class.solangfile.inc.php,1.11,1.12 class.uilangfile.inc.php,1.11,1.12
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.74.2.9,1.74.2.10
- Index(es):