TYPO3  7.6
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Shell Class Reference

Public Member Functions

 getType ()
 
 testCommand ($command)
 

Public Attributes

const TYPE_UNIX = 1
 
const TYPE_DARWIN = 2
 
const TYPE_CYGWIN = 3
 
const TYPE_WINDOWS = 4
 
const TYPE_BSD = 5
 

Private Member Functions

 guessType ()
 

Private Attributes

 $type
 

Detailed Description

Author
Jean-François Simon conta.nosp@m.ct@j.nosp@m.fsimo.nosp@m.n.fr

Definition at line 17 of file finder/Shell/Shell.php.

Member Function Documentation

getType ( )

Returns guessed OS type.

Returns
int

Definition at line 35 of file finder/Shell/Shell.php.

References Shell\$type, and Shell\guessType().

guessType ( )
private

Guesses OS type.

Returns
int

Definition at line 75 of file finder/Shell/Shell.php.

Referenced by Shell\getType().

testCommand (   $command)

Tests if a command is available.

Parameters
string$command
Returns
bool

Definition at line 51 of file finder/Shell/Shell.php.

Member Data Documentation

$type
private

Definition at line 28 of file finder/Shell/Shell.php.

Referenced by Shell\getType().

const TYPE_BSD = 5

Definition at line 23 of file finder/Shell/Shell.php.

Referenced by BsdFindAdapter\canBeUsed().

const TYPE_CYGWIN = 3

Definition at line 21 of file finder/Shell/Shell.php.

const TYPE_DARWIN = 2

Definition at line 20 of file finder/Shell/Shell.php.

Referenced by BsdFindAdapter\canBeUsed().

const TYPE_UNIX = 1

Definition at line 19 of file finder/Shell/Shell.php.

Referenced by GnuFindAdapter\canBeUsed().

const TYPE_WINDOWS = 4

Definition at line 22 of file finder/Shell/Shell.php.