System_Launcher
[ class tree: System_Launcher ] [ index: System_Launcher ] [ all elements ]

Class: System_Launcher

Source Location: /System_Launcher-0.6.2/System/Launcher.php

Class Overview


Launches files with the associated application.


Author(s):

Version:

  • Release: 0.5.1

Copyright:

  • 1997-2005 Christian Weiske

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 60]
Launches files with the associated application.


[ Top ]


Class Variables

$drivers =

[line 72]

Ordered list of drivers to test.
  • Access: protected

Type:   array


[ Top ]

$lastOutput =

[line 78]

Command output string
  • Access: protected

Type:   string


[ Top ]

$os =

[line 66]

The driver for detected operating system.
  • Access: protected

Type:   object


[ Top ]



Method Detail

__construct (Constructor)   [line 84]

System_Launcher __construct( [array $drivers = null])

Sets up a list of operating system checkers.
  • Access: public

Parameters:

array   $drivers   —  List of System_Launcher_Driver checkers.

[ Top ]

cleanFilename   [line 159]

string cleanFilename( string $fileName)

Removes initial dashes to avoid injection of command parameters.
  • Return: Cleaned filename
  • Access: protected

Parameters:

string   $fileName   —  Possibly malicious filename

[ Top ]

detectOS   [line 104]

void detectOS( )

Tries to detect the current operating system and set its driver.
  • Access: protected

[ Top ]

getCommand   [line 124]

string getCommand( boolean $runInBackground)

Returns the appropriate command to launch the given file name, depending on the operating system and the desktop environment.
  • Return: The command to execute
  • Access: protected

Parameters:

boolean   $runInBackground   —  True if the application should be run in the background

[ Top ]

getLastOutput   [line 183]

array getLastOutput( )

Returns last command output as lines of text.
  • Access: public

[ Top ]

launch   [line 143]

boolean launch( string $fileName, [boolean $runInBackground = false])

Launches a file or URL with its associated application.
  • Return: True if all was ok, false if there has been a problem
  • Access: public

Parameters:

string   $fileName   —  The file or URL to open
boolean   $runInBackground   —  True if the application should be run in the background

[ Top ]

launchInBackground   [line 172]

boolean launchInBackground( string $fileName)

Launches a file or URL in the background.
  • Return: True if all was ok, false if there has been a problem
  • Access: public

Parameters:

string   $fileName   —  The file or URL to open

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:55:04 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.