Documentation

ConnectionHelper extends Helper
in package

Doctrine CLI Connection Helper.

Tags
link
www.doctrine-project.org
since
2.0
author

Benjamin Eberlei kontakt@beberlei.de

author

Guilherme Blanco guilhermeblanco@hotmail.com

author

Jonathan Wage jonwage@gmail.com

author

Roman Borschel roman@code-factory.org

Table of Contents

$_connection  : Connection
The Doctrine database Connection.
$helperSet  : mixed
__construct()  : mixed
Constructor.
formatMemory()  : mixed
formatTime()  : mixed
getConnection()  : Connection
Retrieves the Doctrine database Connection.
getHelperSet()  : HelperSet
Gets the helper set associated with this helper.
getName()  : mixed
{@inheritdoc}
removeDecoration()  : mixed
setHelperSet()  : mixed
Sets the helper set associated with this helper.
strlen()  : int
Returns the length of a string, using mb_strwidth if it is available.
strlenWithoutDecoration()  : mixed
substr()  : string
Returns the subset of a string, using mb_substr if it is available.

Properties

$helperSet

protected mixed $helperSet = null

Methods

__construct()

Constructor.

public __construct(Connection $connection) : mixed
Parameters
$connection : Connection

The Doctrine database Connection.

Return values
mixed

formatMemory()

public static formatMemory(mixed $memory) : mixed
Parameters
$memory : mixed
Return values
mixed

formatTime()

public static formatTime(mixed $secs) : mixed
Parameters
$secs : mixed
Return values
mixed

getHelperSet()

Gets the helper set associated with this helper.

public getHelperSet() : HelperSet
Return values
HelperSet

A HelperSet instance

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

setHelperSet()

Sets the helper set associated with this helper.

public setHelperSet([HelperSet $helperSet = null ]) : mixed
Parameters
$helperSet : HelperSet = null
Return values
mixed

strlen()

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

public static strlen(string $string) : int
Parameters
$string : string

The string to check its length

Return values
int

The length of the string

substr()

Returns the subset of a string, using mb_substr if it is available.

public static substr(string $string, int $from[, int|null $length = null ]) : string
Parameters
$string : string

String to subset

$from : int

Start offset

$length : int|null = null

Length to read

Return values
string

The string subset

Search results