Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7405688
AbstractStatementMiddleware.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AbstractStatementMiddleware.php
View Options
<?php
namespace
Doctrine\DBAL\Driver\Middleware
;
use
Doctrine\DBAL\Driver\Result
;
use
Doctrine\DBAL\Driver\Statement
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\Deprecations\Deprecation
;
use
function
func_num_args
;
abstract
class
AbstractStatementMiddleware
implements
Statement
{
private
Statement
$wrappedStatement
;
public
function
__construct
(
Statement
$wrappedStatement
)
{
$this
->
wrappedStatement
=
$wrappedStatement
;
}
/**
* {@inheritDoc}
*/
public
function
bindValue
(
$param
,
$value
,
$type
=
ParameterType
::
STRING
)
{
if
(
func_num_args
()
<
3
)
{
Deprecation
::
trigger
(
'doctrine/dbal'
,
'https://github.com/doctrine/dbal/pull/5558'
,
'Not passing $type to Statement::bindValue() is deprecated.'
.
' Pass the type corresponding to the parameter being bound.'
,
);
}
return
$this
->
wrappedStatement
->
bindValue
(
$param
,
$value
,
$type
);
}
/**
* {@inheritDoc}
*
* @deprecated Use {@see bindValue()} instead.
*/
public
function
bindParam
(
$param
,
&
$variable
,
$type
=
ParameterType
::
STRING
,
$length
=
null
)
{
Deprecation
::
trigger
(
'doctrine/dbal'
,
'https://github.com/doctrine/dbal/pull/5563'
,
'%s is deprecated. Use bindValue() instead.'
,
__METHOD__
,
);
if
(
func_num_args
()
<
3
)
{
Deprecation
::
trigger
(
'doctrine/dbal'
,
'https://github.com/doctrine/dbal/pull/5558'
,
'Not passing $type to Statement::bindParam() is deprecated.'
.
' Pass the type corresponding to the parameter being bound.'
,
);
}
return
$this
->
wrappedStatement
->
bindParam
(
$param
,
$variable
,
$type
,
$length
);
}
/**
* {@inheritDoc}
*/
public
function
execute
(
$params
=
null
):
Result
{
return
$this
->
wrappedStatement
->
execute
(
$params
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 20:00 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b9/63/18ecb3aafcd9285384bfe97f0b6d
Default Alt Text
AbstractStatementMiddleware.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment