37 lines
948 B
PHP
Executable file
37 lines
948 B
PHP
Executable file
<?php
|
|
|
|
// include base peer class
|
|
require_once 'om/BaseNagiosServiceGroupPeer.php';
|
|
|
|
// include object class
|
|
include_once 'NagiosServiceGroup.php';
|
|
|
|
|
|
/**
|
|
* Skeleton subclass for performing query and update operations on the 'nagios_service_group' table.
|
|
*
|
|
* Nagios Service Group
|
|
*
|
|
* This class was autogenerated by Propel on:
|
|
*
|
|
* Thu Dec 13 21:25:24 2007
|
|
*
|
|
* 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 NagiosServiceGroupPeer extends BaseNagiosServiceGroupPeer {
|
|
|
|
public function getByName($name) {
|
|
$c = new Criteria();
|
|
$c->add(NagiosServiceGroupPeer::NAME, $name);
|
|
$c->setIgnoreCase(true);
|
|
$servicegroup = NagiosServiceGroupPeer::doSelectOne($c);
|
|
if(!$servicegroup)
|
|
return false;
|
|
return $servicegroup;
|
|
}
|
|
} // NagiosServiceGroupPeer
|