Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
4e6195b1
Commit
4e6195b1
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Add param types to phpdoc.
parent
d580da2d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Database.php
+17
-17
17 additions, 17 deletions
lib/SimpleSAML/Database.php
with
17 additions
and
17 deletions
lib/SimpleSAML/Database.php
+
17
−
17
View file @
4e6195b1
...
...
@@ -45,7 +45,7 @@ class Database
/**
* Retrieves the current database instance. Will create a new one if there isn't an existing connection.
*
* @param object $altConfig Optional: Instance of a SimpleSAML_Configuration class
* @param
\SimpleSAML_Configuration
object $altConfig Optional: Instance of a SimpleSAML_Configuration class
* @return \SimpleSAML\Database The shared database connection.
*/
public
static
function
getInstance
(
$altConfig
=
null
)
...
...
@@ -93,7 +93,7 @@ class Database
* Generate an Instance ID based on the database
* configuration.
*
* @param $config
Configuration class
* @param
\SimpleSAML_Configuration
$config Configuration class
*
* @return string $instanceId
*/
...
...
@@ -116,10 +116,10 @@ class Database
/**
* This function connects to a dabase.
*
* @param
$dsn
Database connection string
* @param $username
SQL user
* @param $password
SQL password
* @param $options
PDO options
* @param
string $dsn
Database connection string
* @param
string
$username SQL user
* @param
string
$password SQL password
* @param
array
$options
PDO options
*
* @return \PDO object
*/
...
...
@@ -156,7 +156,7 @@ class Database
* This function simply applies the table prefix to
* a suppled table name.
*
* @param $table Table to apply prefix
,
if configured
* @param
string
$table Table to apply prefix
to,
if configured
* @return string Table with configured prefix
*/
public
function
applyPrefix
(
$table
)
...
...
@@ -167,9 +167,9 @@ class Database
/**
* This function queries the database
*
* @param
$db
PDO object to use
* @param $stmt
Prepared SQL statement
* @param $params
Parameters
* @param
\PDO $db
PDO object to use
* @param
string
$stmt
Prepared SQL statement
* @param
array
$params Parameters
*
* @return \PDO statement object
*/
...
...
@@ -202,9 +202,9 @@ class Database
* This function queries the database without using a
* prepared statement.
*
* @param
$db
PDO object to use
* @param $stmt
Prepared SQL statement
* @param $params
Parameters
* @param
\PDO $db
PDO object to use
* @param
string
$stmt
Prepared SQL statement
* @param
array
$params Parameters
*
* @return \PDO statement object
*/
...
...
@@ -225,8 +225,8 @@ class Database
/**
* This executes queries directly on the master.
*
* @param $stmt
Prepared SQL statement
* @param $params
Parameters
* @param
string
$stmt
Prepared SQL statement
* @param
array
$params Parameters
*
* @return \PDO statement object
*/
...
...
@@ -245,8 +245,8 @@ class Database
* This executes queries on a database server
* that is determined by this::getSlave()
*
* @param $stmt
Prepared SQL statement
* @param $params
Parameters
* @param
string
$stmt
Prepared SQL statement
* @param
array
$params Parameters
*
* @return \PDO statement object
*/
...
...
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