Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f1b085df
Commit
f1b085df
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
adding @method annotation to declare methods which can be called on the wrapped statement object
parent
2d592ddc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/db/statementwrapper.php
+11
-3
11 additions, 3 deletions
lib/private/db/statementwrapper.php
with
11 additions
and
3 deletions
lib/private/db/statementwrapper.php
+
11
−
3
View file @
f1b085df
...
...
@@ -8,6 +8,11 @@
/**
* small wrapper around \Doctrine\DBAL\Driver\Statement to make it behave, more like an MDB2 Statement
*
* @method boolean bindValue(mixed $param, mixed $value, integer $type = null);
* @method string errorCode();
* @method array errorInfo();
* @method integer rowCount();
*/
class
OC_DB_StatementWrapper
{
/**
...
...
@@ -161,6 +166,8 @@ class OC_DB_StatementWrapper {
/**
* provide an alias for fetch
*
* @return mixed
*/
public
function
fetchRow
()
{
return
$this
->
statement
->
fetch
();
...
...
@@ -168,12 +175,13 @@ class OC_DB_StatementWrapper {
/**
* Provide a simple fetchOne.
*
* fetch single column from the next row
* @param int $col
n
um the column number to fetch
* @param int $colum
n
the column number to fetch
* @return string
*/
public
function
fetchOne
(
$col
n
um
=
0
)
{
return
$this
->
statement
->
fetchColumn
(
$col
n
um
);
public
function
fetchOne
(
$colum
n
=
0
)
{
return
$this
->
statement
->
fetchColumn
(
$colum
n
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment