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
2704af64
Commit
2704af64
authored
Oct 31, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Little fix
parent
4433e6ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
Lib.php
lib/Doctrine/Lib.php
+3
-16
No files found.
lib/Doctrine/Lib.php
View file @
2704af64
...
...
@@ -95,23 +95,10 @@ class Doctrine_Lib {
public
static
function
getConnectionAsString
(
Doctrine_Connection
$connection
)
{
$r
[]
=
"<pre>"
;
$r
[]
=
"Doctrine_Connection object"
;
$r
[]
=
"State : "
.
Doctrine_Lib
::
getConnectionStateAsString
(
$connection
->
getState
());
$r
[]
=
"Open Transactions : "
.
$connection
->
getTransactionLevel
();
$r
[]
=
"Open Factories : "
.
$connection
->
count
();
$sum
=
0
;
$rsum
=
0
;
$csum
=
0
;
foreach
(
$connection
->
getTables
()
as
$objTable
)
{
if
(
$objTable
->
getCache
()
instanceof
Doctrine_Cache_File
)
{
$sum
+=
array_sum
(
$objTable
->
getCache
()
->
getStats
());
$rsum
+=
$objTable
->
getRepository
()
->
count
();
$csum
+=
$objTable
->
getCache
()
->
count
();
}
}
$r
[]
=
"Cache Hits : "
.
$sum
.
" hits "
;
$r
[]
=
"Cache : "
.
$csum
.
" objects "
;
$r
[]
=
"State : "
.
Doctrine_Lib
::
getConnectionStateAsString
(
$connection
->
getTransaction
()
->
getState
());
$r
[]
=
"Open Transactions : "
.
$connection
->
getTransaction
()
->
getTransactionLevel
();
$r
[]
=
"Table in memory : "
.
$connection
->
count
();
$r
[]
=
"Repositories : "
.
$rsum
.
" objects "
;
$queries
=
false
;
if
(
$connection
->
getDBH
()
instanceof
Doctrine_DB
)
{
$handler
=
"Doctrine Database Handler"
;
...
...
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