Helper

class Helper implements HelperInterface

Helper is the base class for all helper classes.

Methods

setHelperSet(HelperSet $helperSet = null)

Sets the helper set associated with this helper.

HelperSet getHelperSet()

Gets the helper set associated with this helper.

static int strlen(string $string)

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

static formatTime($secs)
static formatMemory($memory)
static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)

Details

setHelperSet(HelperSet $helperSet = null)

Sets the helper set associated with this helper.

Parameters

HelperSet $helperSet A HelperSet instance

HelperSet getHelperSet()

Gets the helper set associated with this helper.

Return Value

HelperSet A HelperSet instance

static int strlen(string $string)

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

Parameters

string $string The string to check its length

Return Value

int The length of the string

static formatTime($secs)

Parameters

$secs

static formatMemory($memory)

Parameters

$memory

static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)

Parameters

OutputFormatterInterface $formatter
$string
doc_Symfony
2016-10-28 06:20:18
Comments
Leave a Comment

Please login to continue.