Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pquery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
pquery
Commits
4dd29e0a
Commit
4dd29e0a
authored
Nov 05, 2011
by
Taddes Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some naming issues.
parent
232df72c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
pquery.array.php
pquery.array.php
+1
-1
pquery.config.php
pquery.config.php
+3
-2
pquery.sql.php
pquery.sql.php
+2
-2
No files found.
pquery.array.php
View file @
4dd29e0a
...
@@ -45,7 +45,7 @@ class pQueryArray extends pQuery implements pQueryExtension {
...
@@ -45,7 +45,7 @@ class pQueryArray extends pQuery implements pQueryExtension {
}
}
/**
/**
* Shortcut constructor for {@link pQuery
Sql
}.
* Shortcut constructor for {@link pQuery
Array
}.
*
*
* @returns pQuerySql A new pQuerySql instance.
* @returns pQuerySql A new pQuerySql instance.
* @see pQuerySql::__construct
* @see pQuerySql::__construct
...
...
pquery.config.php
View file @
4dd29e0a
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
define
(
'DEBUG'
,
true
);
define
(
'DEBUG'
,
true
);
/**
/**
* The root location of the pQuery framework folder, used for file inclusions.
* The root location of the pQuery framework folder, used for file
* inclusions. The path is absolute and should end with a slash ('/').
*
*
* @var string
* @var string
*/
*/
...
@@ -31,7 +32,7 @@ define('ERROR_IS_FATAL', true);
...
@@ -31,7 +32,7 @@ define('ERROR_IS_FATAL', true);
/**
/**
* Abstract class containing plugin configs.
* Abstract class containing plugin configs.
*/
*/
abstract
class
Config
{
abstract
class
pQuery
Config
{
/**
/**
* Config for MySQL plugin.
* Config for MySQL plugin.
*
*
...
...
pquery.sql.php
View file @
4dd29e0a
...
@@ -181,11 +181,11 @@ class pQuerySql extends pQuery implements pQueryExtension {
...
@@ -181,11 +181,11 @@ class pQuerySql extends pQuery implements pQueryExtension {
if
(
self
::
$link
)
if
(
self
::
$link
)
return
;
return
;
if
(
!
isset
(
Config
::
$sql
)
)
if
(
!
isset
(
pQuery
Config
::
$sql
)
)
return
self
::
error
(
'Could not connect to database: no MySQL config found.'
);
return
self
::
error
(
'Could not connect to database: no MySQL config found.'
);
// Connect to the database
// Connect to the database
$c
=
Config
::
$sql
;
$c
=
pQuery
Config
::
$sql
;
$link
=
@
mysql_connect
(
$c
[
'host'
],
$c
[
'username'
],
$c
[
'password'
]);
$link
=
@
mysql_connect
(
$c
[
'host'
],
$c
[
'username'
],
$c
[
'password'
]);
if
(
$link
===
false
)
if
(
$link
===
false
)
...
...
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