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

Interface ProcessInterface

Brings the output and exit status of an external command.

Deprecated since version 1.6: use Symfony/Process component API. Where possible the old interface methods are mapped to equivalent Symfony/Process methods.

Nethgui\System\ProcessInterface implements Nethgui\Utility\DisposableInterface

Direct known implementers

Nethgui\System\Process
Namespace: Nethgui\System
Deprecated: since version 1.6
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: \Nethgui\System\PlatformInterface::exec()
Api
Located at System/ProcessInterface.php
Methods summary
public string
# getOutput( )

The command output

The command output

Returns

string

Api

public array
# getOutputArray( )

The lines of the command output

The lines of the command output

Returns

array

Api

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

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

public
# addArgument( string $arg )

Parameters

$arg

Api

public Nethgui\System\ProcessInterface
# exec( )

Execute the command

Execute the command

Returns

Nethgui\System\ProcessInterface

Api

public false
# kill( )

Kills a RUNNING command

Kills a RUNNING command

Returns

false
on error, TRUE if the command was RUNNING

Api

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

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

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

public array
# getTimes( )

Returns

array
Timing informations

Api

Methods inherited from Nethgui\Utility\DisposableInterface
dispose(), isDisposed()
Constants summary
integer STATE_NEW
# 0
integer STATE_RUNNING
# 1
integer STATE_EXITED
# 2
Nethgui Framework API documentation generated by ApiGen