This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
lilac/classes/NagiosDependencyTarget.php
2011-08-18 14:54:38 +00:00

40 lines
1 KiB
PHP
Executable file

<?php
require 'om/BaseNagiosDependencyTarget.php';
/**
* Skeleton subclass for representing a row from the 'nagios_dependency_target' table.
*
* Targets for a Dependency
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package
*/
class NagiosDependencyTarget extends BaseNagiosDependencyTarget {
/**
* Initializes internal state of NagiosDependencyTarget object.
* @see parent::__construct()
*/
public function __construct()
{
// Make sure that parent constructor is always invoked, since that
// is where any default values for this object are set.
parent::__construct();
}
public function getType() {
if($this->getNagiosService())
return "service";
if($this->getNagiosHost())
return "host";
if($this->getNagiosHostgroup())
return "hostgroup";
}
} // NagiosDependencyTarget