protected $ssh = null;
protected $longArgSeparator = '=';
protected $timeout = 0;
- protected $json = false;
+ protected $sudo = false;
function __construct($program, $output = null, $error = true)
{
$commande = 'nohup ' . $commande;
}
- if ($this->json) {
+ if ($this->sudo) {
$commande = 'sudo ' . $commande;
}
$this->timeout = $timeout;
}
-
/**
* @return bool
*/
- public function isJson(): bool
+ public function isSudo(): bool
{
- return $this->json;
+ return $this->sudo;
}
/**
- * @param bool $json
+ * @param bool $sudo
*/
- public function setJson(bool $json): void
+ public function setSudo(bool $sudo): void
{
- $this->json = $json;
+ $this->sudo = $sudo;
}
}
if ($this->getSrc()) {
$this->setArg(null, $this->getSrc());
}
+ $this->_setMiddleConversionArgs();
if ($this->getDest()) {
$this->setArg(null, $this->getDest());
}
parent::execute($fonction);
}
+ protected function _setMiddleConversionArgs(){
+
+ }
+
protected function _setConversionArgs()
{
class Ico extends Imagemagick
{
- protected function _setConversionArgs()
+ protected function _setMiddleConversionArgs()
{
parent::_setConversionArgs();
$allSizes = [256, 128, 164, 48, 32, 16];