mgd_count_events_in_period

(Midgard 1.4.2 'Bifrost')

mgd_count_events_in_period -- Count the events in a period

Description

int mgd_count_events_in_period (int [start], int [end], int [uid], int [type])

Minimum version: Midgard 1.4 (Bifrost)

Counts the events that have theis starting or their ending date within a certain period. If the optional parameter type is given, only events of that type will be counted. If the optional parameter uid is given, only events that are owned by the person with that id will be counted. If the optional parameter end is omitted, all events that occur after start will be counted. If all parameters are omitted, the total number of events will be returned. The parameters start and end should be in Un*x timestamp format.

Returns the number of matching events if successful. Returns FALSE on failure.


<?php
  $count = mgd_count_events_in_period();
?>