DirectorJob: add job object

This commit is contained in:
Thomas Gelf 2016-04-22 09:55:09 +02:00
parent bd553e65ec
commit ee041b5aac
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\Data\Db\DbObjectWithSettings;
class DirectorJob extends DbObjectWithSettings
{
protected $table = 'director_job';
protected $keyName = 'id';
protected $autoincKeyName = 'id';
protected $defaultProperties = array(
'id' => null,
'job_name' => null,
'job_class' => null,
'disabled' => null,
'run_interval' => null,
'last_attempt_succeeded' => null,
'ts_last_attempt' => null,
'ts_last_error' => null,
'last_error_message' => null,
);
protected $settingsTable = 'director_job_setting';
}