ScheduleDate_Model Class Reference

Schedule downtime. More...

Public Member Functions

 delete_schedule ($id=false)
 Delete a scheduled recurring downtime.

Static Public Member Functions

static schedule_downtime ($id=false, $timestamp=false)
 Schedule a recurring downtime if tomorrow matches any saved schedules.
static determine_downtimetype ($report_type=false)
 Returns appropriate nagios command.
static edit_schedule ($data=false, $id=false)
 Save/update a recurring schedule.
static get_schedule_data ($id=false, $type=false)
 Fetch row(s) from db.
static add_downtime ($data=false, $nagioscmd=false, $start_time=false)
 Send downtime command to nagios.

Detailed Description

Schedule downtime.


Member Function Documentation

static ScheduleDate_Model::add_downtime ( data = false,
nagioscmd = false,
start_time = false 
) [static]

Send downtime command to nagios.

Parameters:
$data array
$nagioscmd string
$start_time int
Returns:
void
ScheduleDate_Model::delete_schedule ( id = false  ) 

Delete a scheduled recurring downtime.

Parameters:
$id ID of the downtime to delete
Returns:
true on success, false otherwise
static ScheduleDate_Model::determine_downtimetype ( report_type = false  )  [static]

Returns appropriate nagios command.

Parameters:
$report_type string
Returns:
string
static ScheduleDate_Model::edit_schedule ( data = false,
id = false 
) [static]

Save/update a recurring schedule.

Parameters:
$data array
$id int
Returns:
bool
static ScheduleDate_Model::get_schedule_data ( id = false,
type = false 
) [static]

Fetch row(s) from db.

Parameters:
$id int = false
$type string = false
Returns:
array
static ScheduleDate_Model::schedule_downtime ( id = false,
timestamp = false 
) [static]

Schedule a recurring downtime if tomorrow matches any saved schedules.

Parameters:
$id int
$timestamp int
Returns:
bool

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 14 May 2013 for ninja by  doxygen 1.6.1