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

Class: VersionControl_Git_Util_Command

Source Location: /VersionControl_Git-0.4.4/VersionControl/Git/Util/Command.php

Class Overview

VersionControl_Git_Component
   |
   --VersionControl_Git_Util_Command

The OO interface for executing Git command


Author(s):

Copyright:

  • 2010 Kousuke Ebihara

Variables

Methods


Child classes:

VersionControl_Git_Util_RevListFetcher
The class represents Git rev-list
DummyGitCommand
The OO interface for executing Git command

Inherited Variables

Inherited Methods


Class Details

[line 36]
The OO interface for executing Git command


[ Top ]


Class Variables

$arguments = array()

[line 50]

An array of arguments
  • Access: protected

Type:   array


[ Top ]

$doubleDash =  false

[line 68]

Flag to add "--" before the end of command

If this is true, command is executed with "--". It is need by some Git command for understanding the specified object is not a path.

  • Access: protected

Type:   bool


[ Top ]

$options = array()

[line 57]

An array of options
  • Access: protected

Type:   array


[ Top ]

$subCommand =  ''

[line 43]

The subcommand name
  • Access: protected

Type:   string


[ Top ]



Method Detail

addArgument   [line 136]

VersionControl_Git_Util_Command addArgument( string $value)

Add an argument
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

string   $value   —  A value of argument

[ Top ]

addDoubleDash   [line 150]

VersionControl_Git_Util_Command addDoubleDash( string $isAdding)

Add / Remove a double-dash
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

string   $isAdding   —  Whether to add double-dash

[ Top ]

createCommandString   [line 165]

string createCommandString( [array $arguments = array()], [array $options = array()])

Create a command string to execute
  • Access: public

Parameters:

array   $arguments   —  An array of arguments
array   $options   —  An array of options

[ Top ]

execute   [line 213]

string execute( [array $arguments = array()], [array $options = array()])

Execute a created command and get result
  • Access: public

Parameters:

array   $arguments   —  An array of arguments
array   $options   —  An array of options

[ Top ]

setArguments   [line 105]

VersionControl_Git_Util_Command setArguments( array $arguments)

Set the arguments
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

array   $arguments   —  An array of new arguments

[ Top ]

setOption   [line 122]

VersionControl_Git_Util_Command setOption( string $name, [string|bool $value = true])

Set a option
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

string   $name   —  A name of option
string|bool   $value   —  A value of option. If it is "true", this option doesn't have a value. If it is "false", this option will be not used

[ Top ]

setOptions   [line 91]

VersionControl_Git_Util_Command setOptions( array $options)

Set the options
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

array   $options   —  An array of new options

[ Top ]

setSubCommand   [line 77]

VersionControl_Git_Util_Command setSubCommand( string $command)

Set the subcommand name
  • Return: The "$this" object for method chain
  • Access: public

Parameters:

string   $command   —  The subcommand name

[ Top ]

stripEscapeSequence   [line 250]

string stripEscapeSequence( string $string)

Strip terminal escape sequences from the specified string
  • Access: public

Parameters:

string   $string   —  The string that will be trimmed

[ Top ]


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