Abstract Class Symfony\Component\Console\Helper\Helper

InheritanceSymfony\Component\Console\Helper\Helper
ImplementsSymfony\Component\Console\Helper\HelperInterface
SubclassesSymfony\Component\Console\Helper\DebugFormatterHelper, Symfony\Component\Console\Helper\DescriptorHelper, Symfony\Component\Console\Helper\FormatterHelper, Symfony\Component\Console\Helper\InputAwareHelper, Symfony\Component\Console\Helper\ProcessHelper, Symfony\Component\Console\Helper\QuestionHelper, Symfony\Component\Console\Helper\SymfonyQuestionHelper

Helper is the base class for all helper classes.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$helperSet Symfony\Component\Console\Helper\Helper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
formatMemory() Symfony\Component\Console\Helper\Helper
formatTime() Symfony\Component\Console\Helper\Helper
getHelperSet() Gets the helper set associated with this helper. Symfony\Component\Console\Helper\Helper
getName() Returns the canonical name of this helper. Symfony\Component\Console\Helper\HelperInterface
setHelperSet() Sets the helper set associated with this helper. Symfony\Component\Console\Helper\Helper
strlen() Returns the length of a string, using mb_strwidth if it is available. Symfony\Component\Console\Helper\Helper
strlenWithoutDecoration() Symfony\Component\Console\Helper\Helper

Property Details

$helperSet protected property
protected $helperSet null

Method Details

formatMemory() public static method

public static void formatMemory ( $memory )
$memory
formatTime() public static method

public static void formatTime ( $secs )
$secs
getHelperSet() public method

Gets the helper set associated with this helper.

public Symfony\Component\Console\Helper\HelperSet getHelperSet ( )
return Symfony\Component\Console\Helper\HelperSet

A HelperSet instance

setHelperSet() public method

Sets the helper set associated with this helper.

public void setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet null )
$helperSet Symfony\Component\Console\Helper\HelperSet

A HelperSet instance

strlen() public static method

Returns the length of a string, using mb_strwidth if it is available.

public static int strlen ( $string )
$string string

The string to check its length

return int

The length of the string

strlenWithoutDecoration() public static method

public static void strlenWithoutDecoration ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string )
$formatter
$string