HumHub Documentation (unofficial)

PdoValue
in package
implements ExpressionInterface

FinalYes

Class PdoValue represents a $value that should be bound to PDO with exact $type.

For example, it will be useful when you need to bind binary data to BLOB column in DBMS:

[':name' => 'John', ':profile' => new PdoValue($profile, \PDO::PARAM_LOB)]`.

To see possible types, check PDO::PARAM_* constants.

Tags
see
https://www.php.net/manual/en/pdostatement.bindparam.php
author

Dmytro Naumenko d.naumenko.a@gmail.com

since
2.0.14
phpcs:disable

Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore

Table of Contents

Interfaces

ExpressionInterface
Interface ExpressionInterface should be used to mark classes, that should be built in a special way.

Properties

$type  : int
$value  : mixed

Methods

__construct()  : mixed
PdoValue constructor.
getType()  : int
getValue()  : mixed

Properties

Methods

__construct()

PdoValue constructor.

public __construct(mixed $value, mixed $type) : mixed
Parameters
$value : mixed
$type : mixed

getType()

public getType() : int
Return values
int

        
On this page

Search results