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

Class: Console_CommandLine_Element

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

Class Overview


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


Author(s):

Version:

  • Release: 1.0.0

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 Mon, 11 Mar 2019 15:22:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.