Console_CommandLine
[ class tree: Console_CommandLine ] [ index: Console_CommandLine ] [ all elements ]
Packages:
Console_CommandLine


Classes:
Console_CommandLine
Console_CommandLine_Action
Console_CommandLine_Action_Callback
Console_CommandLine_Action_Counter
Console_CommandLine_Action_Help
Console_CommandLine_Action_Password
Console_CommandLine_Action_StoreArray
Console_CommandLine_Action_StoreFalse
Console_CommandLine_Action_StoreFloat
Console_CommandLine_Action_StoreInt
Console_CommandLine_Action_StoreString
Console_CommandLine_Action_StoreTrue
Console_CommandLine_Action_Version
Console_CommandLine_Argument
Console_CommandLine_Command
Console_CommandLine_Element
Console_CommandLine_Exception
Console_CommandLine_MessageProvider_Default
Console_CommandLine_Option
Console_CommandLine_Outputter_Default
Console_CommandLine_Renderer_Default
Console_CommandLine_Result
Console_CommandLine_XmlParser
Files:
Action.php
Argument.php
Callback.php
Command.php
CommandLine.php
Counter.php
Default.php
Default.php
Default.php
Element.php
ex1.php
ex2.php
Exception.php
Help.php
MessageProvider.php
Option.php
Outputter.php
Password.php
Renderer.php
Result.php
StoreArray.php
StoreFalse.php
StoreFloat.php
StoreInt.php
StoreString.php
StoreTrue.php
Version.php
XmlParser.php

Class: Console_CommandLine_Element

Source Location: /Console_CommandLine-1.0.2/CommandLine/Element.php

Class Overview


Class that represent a command line element (an option, or an argument).


Author(s):

Version:

  • Release: 1.0.2

Copyright:

  • 2007 David JEAN LOUIS

Variables

Methods


Child classes:

Console_CommandLine_Argument
Class that represent a command line argument.
Console_CommandLine_Option
Class that represent a commandline option.

Inherited Variables

Inherited Methods


Class Details

[line 36]
Class that represent a command line element (an option, or an argument).


[ Top ]


Class Variables

$description =

[line 63]

The element description.
  • Access: public

Type: string


[ Top ]

$help_name =

[line 55]

The name of variable displayed in the usage message, if no set it defaults to the "name" property.
  • Access: public

Type: string


[ Top ]

$name =

[line 46]

The element name.
  • Access: public

Type: string


[ Top ]



Method Detail

__construct (Constructor) [line 76]

Console_CommandLine_Element __construct( [string $name = null], [array $params = array()])

Constructor.
  • Access: public

Overridden in child classes as:

Console_CommandLine_Option::__construct()
Constructor.

Parameters:

string $name — the name of the element
array $params — an optional array of parameters

[ Top ]

toString [line 95]

string toString( )

Return the string representation of the argument.
  • Access: public

Overridden in child classes as:

Console_CommandLine_Option::toString()
Return the string representation of the option.

[ Top ]

validate [line 108]

void validate( )

Validate the option instance.
  • Access: public

Overridden in child classes as:

Console_CommandLine_Argument::validate()
Validate the option instance.
Console_CommandLine_Option::validate()
Validate the option instance.

[ Top ]


Documentation generated on 2019年3月11日 15:25:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /