PHP Class Symfony\Component\Console\Helper\Helper

Inheritance: implements Symfony\Component\Console\Helper\HelperInterface
ファイルを表示 Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$helperSet

Public Methods

Method 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 method

public static formatMemory ( $memory )

formatTime() public static method

public static formatTime ( $secs )

getHelperSet() public method

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

setHelperSet() public method

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 method

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
return integer The length of the string

strlenWithoutDecoration() public static method

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

substr() public static method

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
return string The string subset

Property Details

$helperSet protected_oe property

protected $helperSet