monitroing/commands: Remove method `CommandForm::inline()'

Inline forms will set themselves as inline.

refs #6593
This commit is contained in:
Eric Lippmann 2014-09-11 17:19:00 +02:00
parent 3845301dfb
commit 746e75e5ed
1 changed files with 0 additions and 28 deletions

View File

@ -21,13 +21,6 @@ abstract class CommandForm extends Form
*/
protected $backend;
/**
* Whether the form's inline
*
* @var bool
*/
protected $inline = false;
/**
* Set the monitoring backend
*
@ -51,27 +44,6 @@ abstract class CommandForm extends Form
return $this->backend;
}
/**
* Set the form as inline
*
* @return $this
*/
public function inline()
{
$this->inline = true;
$this->submitLabel = null; // Inline forms must not have a submit button
$class = $this->getAttrib('class');
if (is_array($class)) {
$class[] = 'inline';
} elseif ($class === null) {
$class = 'inline';
} else {
$class .= 'inline';
}
$this->setAttrib('class', $class);
return $this;
}
/**
* Get the transport used to send commands
*