public function __construct() { parent::__construct('Command'); $command = 'core show channels concise'; $this->setKey('Action', 'Command'); $this->setKey('Command', $command); }
public function __construct($db) { parent::__construct('Command'); $this->_param = $db; $command = 'database show'; if (!empty($db)) { $command .= ' ' . str_replace(' ', '/', $db); } $this->setKey('Action', 'Command'); $this->setKey('Command', $command); }