Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
9ca04dd8
Unverified
Commit
9ca04dd8
authored
Dec 11, 2017
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced new constants
parent
99356c28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
155 additions
and
4 deletions
+155
-4
ColumnCase.php
lib/Doctrine/DBAL/ColumnCase.php
+30
-0
Statement.php
lib/Doctrine/DBAL/Driver/Statement.php
+5
-4
FetchMode.php
lib/Doctrine/DBAL/FetchMode.php
+69
-0
ParameterType.php
lib/Doctrine/DBAL/ParameterType.php
+51
-0
No files found.
lib/Doctrine/DBAL/ColumnCase.php
0 → 100644
View file @
9ca04dd8
<?php
namespace
Doctrine\DBAL
;
/**
* Contains portable column case conversions.
*/
class
ColumnCase
{
/**
* Convert column names to upper case.
*
* @see \PDO::CASE_UPPER
*/
public
const
UPPER
=
\PDO
::
CASE_UPPER
;
/**
* Convert column names to lower case.
*
* @see \PDO::CASE_LOWER
*/
public
const
LOWER
=
\PDO
::
CASE_LOWER
;
/**
* This class cannot be instantiated.
*/
final
private
function
__construct
()
{
}
}
lib/Doctrine/DBAL/Driver/Statement.php
View file @
9ca04dd8
...
...
@@ -43,7 +43,8 @@ interface Statement extends ResultStatement
* this will be a parameter name of the form :name. For a prepared statement
* using question mark placeholders, this will be the 1-indexed position of the parameter.
* @param mixed $value The value to bind to the parameter.
* @param int $type Explicit data type for the parameter using the PDO::PARAM_* constants.
* @param int $type Explicit data type for the parameter using the {@link \Doctrine\DBAL\ParameterType}
* constants.
*
* @return bool TRUE on success or FALSE on failure.
*/
...
...
@@ -68,9 +69,9 @@ interface Statement extends ResultStatement
* this will be a parameter name of the form :name. For a prepared statement using
* question mark placeholders, this will be the 1-indexed position of the parameter.
* @param mixed $variable Name of the PHP variable to bind to the SQL statement parameter.
* @param int|null $type Explicit data type for the parameter using the
PDO::PARAM_* constants. To return
*
an INOUT parameter from a stored procedure, use the bitwise OR operator to set th
e
* PDO::PARAM_INPUT_OUTPUT bits for the data_type parameter.
* @param int|null $type Explicit data type for the parameter using the
{@link \Doctrine\DBAL\ParameterType}
*
constants. To return an INOUT parameter from a stored procedure, use the bitwis
e
*
OR operator to set the
PDO::PARAM_INPUT_OUTPUT bits for the data_type parameter.
* @param int|null $length You must specify maxlength when using an OUT bind
* so that PHP allocates enough memory to hold the returned value.
*
...
...
lib/Doctrine/DBAL/FetchMode.php
0 → 100644
View file @
9ca04dd8
<?php
namespace
Doctrine\DBAL
;
/**
* Contains statement fetch modes.
*/
class
FetchMode
{
/**
* Specifies that the fetch method shall return each row as an array indexed
* by column name as returned in the corresponding result set. If the result
* set contains multiple columns with the same name, the statement returns
* only a single value per column name.
*
* @see \PDO::FETCH_ASSOC
*/
public
const
ASSOCIATIVE
=
\PDO
::
FETCH_ASSOC
;
/**
* Specifies that the fetch method shall return each row as an array indexed
* by column number as returned in the corresponding result set, starting at
* column 0.
*
* @see \PDO::FETCH_NUM
*/
public
const
NUMERIC
=
\PDO
::
FETCH_NUM
;
/**
* Specifies that the fetch method shall return each row as an array indexed
* by both column name and number as returned in the corresponding result set,
* starting at column 0.
*
* @see \PDO::FETCH_BOTH
*/
public
const
MIXED
=
\PDO
::
FETCH_BOTH
;
/**
* Specifies that the fetch method shall return each row as an object with
* property names that correspond to the column names returned in the result
* set.
*
* @see \PDO::FETCH_OBJ
*/
public
const
STANDARD_OBJECT
=
\PDO
::
FETCH_OBJ
;
/**
* Specifies that the fetch method shall return only a single requested
* column from the next row in the result set.
*
* @see \PDO::FETCH_COLUMN
*/
public
const
COLUMN
=
\PDO
::
FETCH_COLUMN
;
/**
* Specifies that the fetch method shall return a new instance of the
* requested class, mapping the columns to named properties in the class.
*
* @see \PDO::FETCH_CLASS
*/
public
const
CUSTOM_OBJECT
=
\PDO
::
FETCH_CLASS
;
/**
* This class cannot be instantiated.
*/
final
private
function
__construct
()
{
}
}
lib/Doctrine/DBAL/ParameterType.php
0 → 100644
View file @
9ca04dd8
<?php
namespace
Doctrine\DBAL
;
/**
* Contains statement parameter types.
*/
class
ParameterType
{
/**
* Represents the SQL NULL data type.
*
* @see \PDO::PARAM_NULL
*/
public
const
NULL
=
\PDO
::
PARAM_NULL
;
/**
* Represents the SQL INTEGER data type.
*
* @see \PDO::PARAM_INT
*/
public
const
INTEGER
=
\PDO
::
PARAM_INT
;
/**
* Represents the SQL CHAR, VARCHAR, or other string data type.
*
* @see \PDO::PARAM_STR
*/
public
const
STRING
=
\PDO
::
PARAM_STR
;
/**
* Represents the SQL large object data type.
*
* @see \PDO::PARAM_LOB
*/
public
const
LARGE_OBJECT
=
\PDO
::
PARAM_LOB
;
/**
* Represents a boolean data type.
*
* @see \PDO::PARAM_BOOL
*/
public
const
BOOLEAN
=
\PDO
::
PARAM_BOOL
;
/**
* This class cannot be instantiated.
*/
final
private
function
__construct
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment