mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
start of inline docs
This commit is contained in:
parent
8b605f50ff
commit
39b44180c0
@ -22,10 +22,20 @@
|
|||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
/*!
|
||||||
|
@class nextmatchs
|
||||||
|
@abstract
|
||||||
|
*/
|
||||||
class nextmatchs
|
class nextmatchs
|
||||||
{
|
{
|
||||||
|
/*!
|
||||||
|
@function set_icon
|
||||||
|
@abstract ?
|
||||||
|
@param $tpl ?
|
||||||
|
@param $align ?
|
||||||
|
@param $img_src ?
|
||||||
|
@param $label ?
|
||||||
|
*/
|
||||||
function set_icon(&$tpl,$align,$img_src,$label)
|
function set_icon(&$tpl,$align,$img_src,$label)
|
||||||
{
|
{
|
||||||
$tpl->set_var('align',$align);
|
$tpl->set_var('align',$align);
|
||||||
@ -33,7 +43,15 @@
|
|||||||
$tpl->set_var('label',lang($label));
|
$tpl->set_var('label',lang($label));
|
||||||
$tpl->parse('out','link',True);
|
$tpl->parse('out','link',True);
|
||||||
}
|
}
|
||||||
|
/*!
|
||||||
|
@function set_link
|
||||||
|
@abstract ?
|
||||||
|
@param $tpl ?
|
||||||
|
@param $img_src ?
|
||||||
|
@param $label ?
|
||||||
|
@param $link ?
|
||||||
|
@param $extravars ?
|
||||||
|
*/
|
||||||
function set_link(&$tpl,$align,$img_src,$label,$link,$extravars)
|
function set_link(&$tpl,$align,$img_src,$label,$link,$extravars)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
@ -49,6 +67,19 @@
|
|||||||
$tpl->parse('out','link',True);
|
$tpl->parse('out','link',True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function show_tpl
|
||||||
|
@abstract ?
|
||||||
|
@param $sn ?
|
||||||
|
@param $start ?
|
||||||
|
@param $total ?
|
||||||
|
@param $extra ?
|
||||||
|
@param $twidth ?
|
||||||
|
@param $bgtheme ?
|
||||||
|
@param $search_obj ?
|
||||||
|
@param $filter_obj ?
|
||||||
|
@param $showsearch ?
|
||||||
|
*/
|
||||||
function show_tpl($sn,$start,$total,$extra, $twidth, $bgtheme,$search_obj=0,$filter_obj=1,$showsearch=1)
|
function show_tpl($sn,$start,$total,$extra, $twidth, $bgtheme,$search_obj=0,$filter_obj=1,$showsearch=1)
|
||||||
{
|
{
|
||||||
global $filter, $qfield, $start, $order, $sort, $query, $phpgw, $phpgw_info;
|
global $filter, $qfield, $start, $order, $sort, $query, $phpgw, $phpgw_info;
|
||||||
@ -79,7 +110,14 @@
|
|||||||
|
|
||||||
return $tpl->fp('out','nextmatchs');
|
return $tpl->fp('out','nextmatchs');
|
||||||
}
|
}
|
||||||
|
/*!
|
||||||
|
@function left
|
||||||
|
@abstract ?
|
||||||
|
@param $scriptname ?
|
||||||
|
@param $start ?
|
||||||
|
@param $total ?
|
||||||
|
@param $extradate ?
|
||||||
|
*/
|
||||||
function left($scriptname,$start,$total,$extradata = '')
|
function left($scriptname,$start,$total,$extradata = '')
|
||||||
{
|
{
|
||||||
global $filter, $qfield, $order, $sort, $query, $phpgw_info, $phpgw;
|
global $filter, $qfield, $order, $sort, $query, $phpgw_info, $phpgw;
|
||||||
@ -124,6 +162,14 @@
|
|||||||
return $tpl->fp('out_','out');
|
return $tpl->fp('out_','out');
|
||||||
} /* left() */
|
} /* left() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function right
|
||||||
|
@abstract ?
|
||||||
|
@param $scriptname ?
|
||||||
|
@param $start ?
|
||||||
|
@param $total ?
|
||||||
|
@param $extradate ?
|
||||||
|
*/
|
||||||
function right($scriptname,$start,$total,$extradata = '')
|
function right($scriptname,$start,$total,$extradata = '')
|
||||||
{
|
{
|
||||||
global $filter, $qfield, $order, $sort, $query, $phpgw_info, $phpgw;
|
global $filter, $qfield, $order, $sort, $query, $phpgw_info, $phpgw;
|
||||||
@ -158,6 +204,11 @@
|
|||||||
return $tpl->fp('out_','out');
|
return $tpl->fp('out_','out');
|
||||||
} /* right() */
|
} /* right() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function search
|
||||||
|
@abstract ?
|
||||||
|
@param $search_obj default 0
|
||||||
|
*/
|
||||||
function search($search_obj=0)
|
function search($search_obj=0)
|
||||||
{
|
{
|
||||||
global $query;
|
global $query;
|
||||||
@ -172,6 +223,13 @@
|
|||||||
return $tpl->fp('out','search');
|
return $tpl->fp('out','search');
|
||||||
} /* search() */
|
} /* search() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function filterobj
|
||||||
|
@abstract ?
|
||||||
|
@param $filtertable
|
||||||
|
@param $indxfieldname ?
|
||||||
|
@param $strfieldname ?
|
||||||
|
*/
|
||||||
function filterobj($filtertable, $idxfieldname, $strfieldname)
|
function filterobj($filtertable, $idxfieldname, $strfieldname)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
@ -190,6 +248,11 @@
|
|||||||
return $filter_obj;
|
return $filter_obj;
|
||||||
} /* filterobj() */
|
} /* filterobj() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function searchby
|
||||||
|
@abstract ?
|
||||||
|
@param $search_obj ?
|
||||||
|
*/
|
||||||
function searchby($search_obj)
|
function searchby($search_obj)
|
||||||
{
|
{
|
||||||
global $qfield, $phpgw, $phpgw_info;
|
global $qfield, $phpgw, $phpgw_info;
|
||||||
@ -220,6 +283,11 @@
|
|||||||
return $str;
|
return $str;
|
||||||
} /* searchby() */
|
} /* searchby() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function filter
|
||||||
|
@abstract ?
|
||||||
|
@param $filter_obj
|
||||||
|
*/
|
||||||
function filter($filter_obj)
|
function filter($filter_obj)
|
||||||
{
|
{
|
||||||
global $filter, $phpgw, $phpgw_info;
|
global $filter, $phpgw, $phpgw_info;
|
||||||
@ -275,6 +343,11 @@
|
|||||||
return $tpl->fp('out','filter');
|
return $tpl->fp('out','filter');
|
||||||
} /* filter() */
|
} /* filter() */
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function alternate_row_color
|
||||||
|
@abstract alternate row colour
|
||||||
|
@param $currentcolor default ''
|
||||||
|
*/
|
||||||
function alternate_row_color($currentcolor = '')
|
function alternate_row_color($currentcolor = '')
|
||||||
{
|
{
|
||||||
global $phpgw_info;
|
global $phpgw_info;
|
||||||
@ -299,11 +372,26 @@
|
|||||||
|
|
||||||
// If you are using the common bgcolor="{tr_color}"
|
// If you are using the common bgcolor="{tr_color}"
|
||||||
// This function is a little cleanier approch
|
// This function is a little cleanier approch
|
||||||
|
/*!
|
||||||
|
@function template_alternate_row_color
|
||||||
|
@abstract ?
|
||||||
|
@param $tpl ?
|
||||||
|
*/
|
||||||
function template_alternate_row_color(&$tpl)
|
function template_alternate_row_color(&$tpl)
|
||||||
{
|
{
|
||||||
$tpl->set_var('tr_color',$this->alternate_row_color());
|
$tpl->set_var('tr_color',$this->alternate_row_color());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@function show_sort_order
|
||||||
|
@abstract ?
|
||||||
|
@param $sort ?
|
||||||
|
@param $var ?
|
||||||
|
@param $order ?
|
||||||
|
@param $program ?
|
||||||
|
@param $text ?
|
||||||
|
@param $extra default ''
|
||||||
|
*/
|
||||||
function show_sort_order($sort,$var,$order,$program,$text,$extra='')
|
function show_sort_order($sort,$var,$order,$program,$text,$extra='')
|
||||||
{
|
{
|
||||||
global $phpgw, $filter, $qfield, $start, $query;
|
global $phpgw, $filter, $qfield, $start, $query;
|
||||||
|
Loading…
Reference in New Issue
Block a user