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

Class: Console_Enviroment

Source Location: /library/Console/Enviroment.php

Class Overview


Template method class for CLI commands.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Constants

Methods



Class Details

[line 31]
Template method class for CLI commands.



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
see:  HelloWorldApplication for an example implementation.
abstract:  


[ Top ]


Class Methods


static method isLinux [line 75]

static bool isLinux( )

Returns if the php enviroment os is Linux



Tags:

access:  public


[ Top ]

static method isMacOs [line 86]

static bool isMacOs( )

Returns if the php enviroment os is Mac Os



Tags:

access:  public


[ Top ]

static method isOs [line 53]

static bool isOs( string $osType)

Returns if the php enviromt is of an specific os type.



Tags:

access:  public


Parameters:

string   $osType   One of the OS_* constants

[ Top ]

static method isSapiCli [line 41]

static bool isSapiCli( )



Tags:



[ Top ]

static method isWindows [line 64]

static bool isWindows( )

Returns if the php enviroment os is Winows



Tags:

access:  public


[ Top ]


Class Constants

OS_LINIX =  'linux'

[line 34]


[ Top ]

OS_MACOS =  'Darwin'

[line 33]


[ Top ]

OS_WINDOWS =  'win'

[line 32]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 15:52:31 +0200 by phpDocumentor 1.4.2