2013-07-12 15:00:59 +02:00
|
|
|
<?php
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
2013-08-20 15:32:25 +02:00
|
|
|
namespace Icinga\Module\Monitoring\Form\Command;
|
2013-07-12 15:00:59 +02:00
|
|
|
|
2013-07-17 14:08:07 +02:00
|
|
|
/**
|
2013-08-12 13:04:30 +02:00
|
|
|
* Base class for command forms which allow to propagate the command to child objects too
|
2013-07-17 14:08:07 +02:00
|
|
|
*/
|
2013-08-06 11:01:43 +02:00
|
|
|
abstract class WithChildrenCommandForm extends CommandForm
|
2013-07-12 15:00:59 +02:00
|
|
|
{
|
2013-07-17 14:08:07 +02:00
|
|
|
/**
|
2013-08-12 13:04:30 +02:00
|
|
|
* Whether to include all objects beyond as well
|
2013-07-17 14:08:07 +02:00
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
private $withChildren = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Setter for withChildren
|
2013-08-12 13:04:30 +02:00
|
|
|
*
|
2013-07-17 14:08:07 +02:00
|
|
|
* @param bool $flag
|
|
|
|
*/
|
|
|
|
public function setWithChildren($flag = true)
|
|
|
|
{
|
|
|
|
$this->withChildren = $flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Getter for withChildren
|
2013-08-12 13:04:30 +02:00
|
|
|
*
|
2013-07-17 14:08:07 +02:00
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getWithChildren()
|
|
|
|
{
|
|
|
|
return $this->withChildren;
|
|
|
|
}
|
2013-07-12 15:00:59 +02:00
|
|
|
}
|