dolibarr  7.0.0-beta
Functions
agenda.lib.php File Reference

Set of function for the agenda module. More...

Go to the source code of this file.

Functions

 print_actions_filter ($form, $canedit, $status, $year, $month, $day, $showbirthday, $filtera, $filtert, $filterd, $pid, $socid, $action, $showextcals=array(), $actioncode='', $usergroupid='', $excludetype='', $resourceid=0)
 Show filter form in agenda view. More...
 
 show_array_actions_to_do ($max=5)
 Show actions to do array. More...
 
 show_array_last_actions_done ($max=5)
 Show last actions array. More...
 
 agenda_prepare_head ()
 Prepare array with list of tabs. More...
 
 actions_prepare_head ($object)
 Prepare array with list of tabs. More...
 
 calendars_prepare_head ($param)
 Define head array for tabs of agenda setup pages. More...
 

Detailed Description

Set of function for the agenda module.

Definition in file agenda.lib.php.

Function Documentation

actions_prepare_head (   $object)

Prepare array with list of tabs.

Parameters
object$objectObject related to tabs
Returns
array Array of tabs to show

Definition at line 452 of file agenda.lib.php.

References complete_head_from_modules(), Link\count(), and dol_dir_list().

agenda_prepare_head ( )

Prepare array with list of tabs.

Returns
array Array of tabs to show

Definition at line 399 of file agenda.lib.php.

References complete_head_from_modules().

calendars_prepare_head (   $param)

Define head array for tabs of agenda setup pages.

Parameters
string$paramParameters to add to url
Returns
array Array of head

Definition at line 510 of file agenda.lib.php.

References complete_head_from_modules().

print_actions_filter (   $form,
  $canedit,
  $status,
  $year,
  $month,
  $day,
  $showbirthday,
  $filtera,
  $filtert,
  $filterd,
  $pid,
  $socid,
  $action,
  $showextcals = array(),
  $actioncode = '',
  $usergroupid = '',
  $excludetype = '',
  $resourceid = 0 
)

Show filter form in agenda view.

Parameters
Object$formForm object
int$caneditCan edit filter fields
int$statusStatus
int$yearYear
int$monthMonth
int$dayDay
int$showbirthdayShow birthday
string$filteraFilter on create by user
string$filtertFilter on assigned to user
string$filterdFilter of done by user
int$pidProduct id
int$socidThird party id
string$actionAction string
array$showextcalsArray with list of external calendars (used to show links to select calendar), or -1 to show no legend
string | array$actioncodePreselected value(s) of actioncode for filter on event type
int$usergroupidId of group to filter on users
string$excludetypeA type to exclude ('systemauto', 'system', '')
int$resourceidPreselected value of resource for filter on resource
Returns
void

Definition at line 50 of file agenda.lib.php.

References $form, $formactions, and print.

show_array_actions_to_do (   $max = 5)

Show actions to do array.

Parameters
int$maxMax nb of records
Returns
void

Definition at line 212 of file agenda.lib.php.

References $resql, dol_now(), dol_print_error(), img_warning(), and print.

show_array_last_actions_done (   $max = 5)

Show last actions array.

Parameters
int$maxMax nb of records
Returns
void

Definition at line 312 of file agenda.lib.php.

References $resql, dol_now(), dol_print_error(), and print.