Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AlwaysFailValidator
  • CallbackValidator
  • NethPlatform
  • Process
  • SessionDatabase
  • Validator

Interfaces

  • DatabaseInterface
  • MandatoryValidatorInterface
  • PlatformConsumerInterface
  • PlatformInterface
  • ProcessInterface
  • ValidatorInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class Process

Backward compatible API to \Symfony\Component\Process\Process

Symfony\Component\Process\Process
Extended by Nethgui\System\Process implements Nethgui\System\ProcessInterface
Namespace: Nethgui\System
Located at System/Process.php
Methods summary
public
# __construct( $command, $input = NULL )
public
# addArgument( string $arg )

Parameters

$arg

Api

Implementation of

Nethgui\System\ProcessInterface::addArgument()
public DisposableInterface;
# dispose( )

Returns

DisposableInterface;

Implementation of

Nethgui\Utility\DisposableInterface::dispose()
public Nethgui\System\ProcessInterface
# exec( )

Execute the command

Execute the command

Returns

Nethgui\System\ProcessInterface

Api

Implementation of

Nethgui\System\ProcessInterface::exec()
public mixed
# getExitCode( )

The exit status code

The exit status code

Returns

mixed
The process exit code (integer) or FALSE if the process has not exited yet.

Api

Implementation of

Nethgui\System\ProcessInterface::getExitCode()
public string
# getIdentifier( )

Obtain the process identifier.

Obtain the process identifier.

If the identifier has not been set this method returns a random string

Returns

string
The process unique identifier

Api

Implementation of

Nethgui\System\ProcessInterface::getIdentifier()
public string
# getOutput( )

The command output

The command output

Returns

string

Api

Implementation of

Nethgui\System\ProcessInterface::getOutput()
public array
# getOutputArray( )

The lines of the command output

The lines of the command output

Returns

array

Api

Implementation of

Nethgui\System\ProcessInterface::getOutputArray()
public array
# getTimes( )

Returns

array
Timing informations

Api

Implementation of

Nethgui\System\ProcessInterface::getTimes()
public boolean
# isDisposed( )

Returns

boolean

Implementation of

Nethgui\Utility\DisposableInterface::isDisposed()
public false
# kill( )

Kills a RUNNING command

Kills a RUNNING command

Returns

false
on error, TRUE if the command was RUNNING

Api

Implementation of

Nethgui\System\ProcessInterface::kill()
public integer
# readExecutionState( )

Read and returns the execution state, one of NEW, RUNNING, EXITED

Read and returns the execution state, one of NEW, RUNNING, EXITED

Returns

integer

Api

Implementation of

Nethgui\System\ProcessInterface::readExecutionState()
public string|boolean
# readOutput( )

Peek the running process output

Peek the running process output

Returns

string|boolean
An output chunk, if more data is available, FALSE otherwise.

Api

Implementation of

Nethgui\System\ProcessInterface::readOutput()
public Nethgui\System\ProcessInterface
# setIdentifier( string $identifier )

Give an identity to the process object to retrieve it later.

Give an identity to the process object to retrieve it later.

Parameters

$identifier
identifier of the process

Returns

Nethgui\System\ProcessInterface

Api

Implementation of

Nethgui\System\ProcessInterface::setIdentifier()
public
# setPhpWrapper( Nethgui\Utility\PhpWrapper $object )
Constants inherited from Nethgui\System\ProcessInterface
STATE_EXITED, STATE_NEW, STATE_RUNNING
Properties summary
public $log
#
Nethgui Framework API documentation generated by ApiGen