infolog/inc/class.soinfolog.inc.php File Reference


Classes

class  soinfolog
 storage object / db-layer for InfoLog More...

Functions

int anzSubs ($info_id)
 count the sub-entries of $info_id
array search (&$query)
 searches InfoLog for a certain pattern in $query


Function Documentation

int anzSubs info_id  ) 
 

count the sub-entries of $info_id

This is done now be search too (in key info_anz_subs), if DB can use sub-queries

Parameters:
$info_id id of log-entry
Returns:
the number of sub-entries

array search &$  query  ) 
 

searches InfoLog for a certain pattern in $query

If DB can use sub-queries, the number of subs are under the key info_anz_subs.

Parameters:
$query[order] column-name to sort after
$query[sort] sort-order DESC or ASC
$query[filter] string with combination of acl-, date- and status-filters, eg. 'own-open-today' or ''
$query[cat_id] category to use or 0 or unset
$query[search] pattern to search, search is done in info_from, info_subject and info_des
$query[action] / $query[action_id] if only entries linked to a specified app/entry show be used
&$query[total] nextmatch-parameters will be used and set if query returns less entries
$query[col_filter] array with column-name - data pairs, data == '' means no filter (!)
$query[subs] boolean return subs or not, if unset the user preference is used
$query[num_rows] number of rows to return if $query[start] is set, default is to use the value from the general prefs
Returns:
with id's as key of the matching log-entries


Generated on Tue Apr 4 15:46:11 2006 for EgwIcal by  doxygen 1.4.6