symfony API

sfCommandArgumentSet Class

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

You are currently browsing the symfony API for the 1.1 version. Switch to:

Represent a set of command line arguments.

Method Summary

Method Details

  • (Boolean) hasArgument ($name)

    $name The argument name

    Returns true if an argument object exists by name.

    returns true if the argument object exists, false otherwise

  • getArgument ($name)

    $name The argument name

    Returns an argument by name.

    returns A sfCommandArgument object

  • addArgument ($argument)

    $argument A sfCommandArgument object

    Add a sfCommandArgument objects.

  • __construct ($arguments = array())

    $arguments An array of sfCommandArgument objects

    Constructor.

  • addArguments ($arguments = array())

    $arguments An array of sfCommandArgument objects

    Add an array of sfCommandArgument objects.

  • (array) getArguments ()

    Gets the array of sfCommandArgument objects.

    returns An array of sfCommandArgument objects

  • setArguments ($arguments = array())

    $arguments An array of sfCommandArgument objects

    Sets the sfCommandArgument objects.

  • (integer) getArgumentCount ()

    Returns the number of arguments.

    returns The number of arguments

  • (array) getDefaults ()

    Gets the default values.

    returns An array of default values

  • (integer) getArgumentRequiredCount ()

    Returns the number of required arguments.

    returns The number of required arguments