PHP Class Symfony\Component\Console\Helper\Helper

Inheritance: implements Symfony\Component\Console\Helper\HelperInterface
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Protected Properties

Свойство Type Description
$helperSet

Méthodes publiques

Méthode Description
formatMemory ( $memory )
formatTime ( $secs )
getHelperSet ( ) : Symfony\Component\Console\Helper\HelperSet Gets the helper set associated with this helper.
setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet = null ) Sets the helper set associated with this helper.
strlen ( string $string ) : integer Returns the length of a string, using mb_strwidth if it is available.
strlenWithoutDecoration ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string )
substr ( string $string, integer $from, integer | null $length = null ) : string Returns the subset of a string, using mb_substr if it is available.

Method Details

formatMemory() public static méthode

public static formatMemory ( $memory )

formatTime() public static méthode

public static formatTime ( $secs )

getHelperSet() public méthode

Gets the helper set associated with this helper.
public getHelperSet ( ) : Symfony\Component\Console\Helper\HelperSet
Résultat Symfony\Component\Console\Helper\HelperSet A HelperSet instance

setHelperSet() public méthode

Sets the helper set associated with this helper.
public setHelperSet ( Symfony\Component\Console\Helper\HelperSet $helperSet = null )
$helperSet Symfony\Component\Console\Helper\HelperSet A HelperSet instance

strlen() public static méthode

Returns the length of a string, using mb_strwidth if it is available.
public static strlen ( string $string ) : integer
$string string The string to check its length
Résultat integer The length of the string

strlenWithoutDecoration() public static méthode

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

substr() public static méthode

Returns the subset of a string, using mb_substr if it is available.
public static substr ( string $string, integer $from, integer | null $length = null ) : string
$string string String to subset
$from integer Start offset
$length integer | null Length to read
Résultat string The string subset

Property Details

$helperSet protected_oe property

protected $helperSet