Overview

Namespaces

  • App
    • CloudModule
      • Forms
      • Model
      • Presenters
    • ConfigModule
      • Forms
      • Model
      • Presenters
    • Forms
    • GatewayModule
      • Model
      • Presenters
    • IqrfAppModule
      • Forms
      • Model
      • Presenters
    • Model
    • Presenters
    • Router
    • ServiceModule
      • Model
      • Presenters
  • PHP
  • Test
    • ConfigModule
      • Model
    • IqrfAppModule
      • Model
    • Model
    • Router
    • ServiceModule
      • Model

Classes

  • CommandManager
  • FileManager
  • JsonFileManager
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class CommandManager

Tool for executing commands.

App\Model\CommandManager uses Nette\SmartObject (not available)
Namespace: App\Model
Located at model/CommandManager.php
Methods summary
public
# __construct( App\Model\bool $sudo )

Constructor

Constructor

Parameters

$sudo
Sudo required
public string
# send( App\Model\string $cmd, App\Model\bool $needSudo = false )

Execute shell command and return output

Execute shell command and return output

Parameters

$cmd
Command to execute
$needSudo

Returns

string
Output
public boolean
# commandExist( App\Model\string $cmd )

Check the existence of a command

Check the existence of a command

Parameters

$cmd
Command

Returns

boolean
Properties summary
private boolean $sudo
#
private array $descriptorspec

An indexed array where the key represents the descriptor number and the value represents how PHP will pass that descriptor to the child process. 0 is stdin, 1 is stdout, while 2 is stderr.

An indexed array where the key represents the descriptor number and the value represents how PHP will pass that descriptor to the child process. 0 is stdin, 1 is stdout, while 2 is stderr.

# [ 0 => ['pipe', 'r'], // stdin is a pipe that the child will read from 1 => ['pipe', 'w'], // stdout is a pipe that the child will write to 2 => ['pipe', 'w'] // stderr is a pipe that the child will write to ]
IQRF Gateway Daemon webapp API documentation generated by ApiGen